Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

285 lines
16 KiB

  1. //****************************************************************************
  2. //
  3. // File: joystick.rc
  4. // Content: Joystick cpl resources
  5. // History:
  6. // Date By Reason
  7. // ==== == ======
  8. // 29-nov-94 craige split from mmse
  9. // 15-dec-94 craige allow N joysticks
  10. // 05-jan-95 craige new centering confirmation messages
  11. // 04-mar-95 craige bug 10761 - separate strings for pluralization;
  12. // capitalization changes; misc other issues
  13. //
  14. // Copyright (c) Microsoft Corporation 1994, 1995
  15. //
  16. //****************************************************************************
  17. #include "joycpl.h"
  18. #include "joy.rcv"
  19. IDI_JOYSTICK ICON DISCARDABLE "joystick.ico"
  20. IDI_JOYBTN ICON DISCARDABLE "joybtn.ico"
  21. IDI_JOYPOV_NONE ICON DISCARDABLE "joypov_n.ico"
  22. IDI_JOYPOV_UP ICON DISCARDABLE "joypov_u.ico"
  23. IDI_JOYPOV_DOWN ICON DISCARDABLE "joypov_d.ico"
  24. IDI_JOYPOV_LEFT ICON DISCARDABLE "joypov_l.ico"
  25. IDI_JOYPOV_RIGHT ICON DISCARDABLE "joypov_r.ico"
  26. IDI_JOYPOV_GRAYED ICON DISCARDABLE "joypov_g.ico"
  27. IDD_JOYSTICK DIALOG DISCARDABLE 0, 0, 227, 200
  28. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION
  29. CAPTION "Joystick"
  30. FONT 8, "MS Shell Dlg"
  31. BEGIN
  32. COMBOBOX IDC_JOYCURRENTID,45,30,168,48,CBS_DROPDOWNLIST |
  33. WS_VSCROLL | WS_TABSTOP
  34. COMBOBOX IDC_JOYSELECT,45,74,168,48,CBS_DROPDOWNLIST | WS_VSCROLL |
  35. WS_TABSTOP
  36. CONTROL "&Rudder",IDC_JOY1HASRUDDER,"Button",BS_AUTOCHECKBOX |
  37. WS_TABSTOP,45,93,57,10
  38. PUSHBUTTON "&Calibrate ...",IDC_JOYCALIBRATE,109,91,50,14
  39. PUSHBUTTON "&Test ...",IDC_JOYTEST,163,91,50,14
  40. PUSHBUTTON "R&eset",IDC_JOYRESET,13,150,50,14
  41. GROUPBOX "Joystick configuration",IDC_JOYSTICK1_FRAME,7,52,212,60
  42. LTEXT "",IDC_JOYMSG,13,7,212,9
  43. ICON IDI_JOYSTICK,IDC_ICON_1,13,22,18,20
  44. LTEXT "Current joystick:",IDC_JOYCURRENTIDMSG,45,20,62,9
  45. LTEXT "Joystick selection:",IDC_JOYSELECTMSG,45,64,62,9
  46. ICON IDI_JOYSTICK,IDC_ICON_2,13,66,18,20
  47. GROUPBOX "Joystick troubleshooter",IDC_JOYTROUBLESHOOT_FRAME,7,
  48. 115,212,56
  49. LTEXT "If your joystick no longer works correctly with a game, click Reset.",
  50. IDC_JOYTROUBLESHOOT_TEXT,13,127,197,18
  51. END
  52. IDD_JOYTEST DIALOG DISCARDABLE 0, 0, 205, 187
  53. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | DS_CONTEXTHELP
  54. CAPTION "Joystick Test"
  55. FONT 8, "MS Shell Dlg"
  56. BEGIN
  57. DEFPUSHBUTTON "OK",IDOK,147,166,50,14
  58. GROUPBOX "Position",IDC_GROUPBOX,7,7,190,89
  59. LISTBOX IDC_JOYLIST1,14,37,45,40,NOT LBS_NOTIFY | LBS_NOREDRAW |
  60. LBS_NOINTEGRALHEIGHT
  61. LTEXT "To test your joystick's calibration, move the joystick.",
  62. IDC_TEXT_1,13,21,176,9
  63. GROUPBOX "Buttons",IDC_GROUPBOX_2,7,100,190,59
  64. LTEXT "Press one of your joystick's buttons.",IDC_TEXT_2,45,
  65. 114,141,8
  66. ICON IDI_JOYBTN,IDC_ICON_1,13,114,18,20
  67. LTEXT "Button 1",IDC_JOYB1_LABEL,45,130,30,7
  68. LTEXT "Button 2",IDC_JOYB2_LABEL,81,130,30,7
  69. LTEXT "Button 3",IDC_JOYB3_LABEL,117,130,30,7
  70. LTEXT "Button 4",IDC_JOYB4_LABEL,153,130,30,7
  71. LISTBOX IDC_JOYB1,45,141,30,9,NOT LBS_NOTIFY | LBS_NOREDRAW |
  72. LBS_NOINTEGRALHEIGHT
  73. LISTBOX IDC_JOYB2,81,141,30,9,NOT LBS_NOTIFY | LBS_NOREDRAW |
  74. LBS_NOINTEGRALHEIGHT
  75. LISTBOX IDC_JOYB3,117,141,30,9,NOT LBS_NOTIFY | LBS_NOREDRAW |
  76. LBS_NOINTEGRALHEIGHT
  77. LISTBOX IDC_JOYB4,153,141,30,9,NOT LBS_NOTIFY | LBS_NOREDRAW |
  78. LBS_NOINTEGRALHEIGHT
  79. CTEXT "Throttle",IDC_JOYLIST2_LABEL,73,80,36,9
  80. CTEXT "Joystick",IDC_JOYLIST1_LABEL,11,80,51,8
  81. LISTBOX IDC_JOYLIST2,86,37,10,40,NOT LBS_NOTIFY | LBS_NOREDRAW |
  82. LBS_NOINTEGRALHEIGHT
  83. ICON IDI_JOYPOV_NONE,IDC_JOYPOV,161,37,18,20
  84. CTEXT "Point of view hat",IDC_JOYPOV_LABEL,155,64,28,24
  85. CTEXT "Rudder",IDC_JOYLIST3_LABEL,111,80,36,9
  86. LISTBOX IDC_JOYLIST3,124,37,10,40,NOT LBS_NOTIFY | LBS_NOREDRAW |
  87. LBS_NOINTEGRALHEIGHT
  88. END
  89. IDD_JOYTEST1 DIALOG DISCARDABLE 0, 0, 282, 187
  90. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | DS_CONTEXTHELP
  91. CAPTION "Joystick Test"
  92. FONT 8, "MS Shell Dlg"
  93. BEGIN
  94. DEFPUSHBUTTON "OK",IDOK,224,166,50,14
  95. GROUPBOX "Position",IDC_GROUPBOX,7,7,266,89
  96. LISTBOX IDC_JOYLIST1,14,37,45,40,NOT LBS_NOTIFY | LBS_NOREDRAW |
  97. LBS_NOINTEGRALHEIGHT
  98. LTEXT "To test your joystick's calibration, move the joystick.",
  99. IDC_TEXT_1,13,21,176,9
  100. GROUPBOX "Buttons",IDC_GROUPBOX_2,7,100,190,59
  101. LTEXT "Press one of your joystick's buttons.",IDC_TEXT_2,45,
  102. 114,141,8
  103. ICON IDI_JOYBTN,IDC_ICON_1,13,114,18,20
  104. LTEXT "Button 1",IDC_JOYB1_LABEL,45,130,30,7
  105. LTEXT "Button 2",IDC_JOYB2_LABEL,81,130,30,7
  106. LTEXT "Button 3",IDC_JOYB3_LABEL,117,130,30,7
  107. LTEXT "Button 4",IDC_JOYB4_LABEL,153,130,30,7
  108. LISTBOX IDC_JOYB1,45,141,30,9,NOT LBS_NOTIFY | LBS_NOREDRAW |
  109. LBS_NOINTEGRALHEIGHT
  110. LISTBOX IDC_JOYB2,81,141,30,9,NOT LBS_NOTIFY | LBS_NOREDRAW |
  111. LBS_NOINTEGRALHEIGHT
  112. LISTBOX IDC_JOYB3,117,141,30,9,NOT LBS_NOTIFY | LBS_NOREDRAW |
  113. LBS_NOINTEGRALHEIGHT
  114. LISTBOX IDC_JOYB4,153,141,30,9,NOT LBS_NOTIFY | LBS_NOREDRAW |
  115. LBS_NOINTEGRALHEIGHT
  116. CTEXT "Throttle",IDC_JOYLIST2_LABEL,73,80,36,9
  117. CTEXT "Joystick",IDC_JOYLIST1_LABEL,11,80,48,8
  118. LISTBOX IDC_JOYLIST2,86,37,10,40,NOT LBS_NOTIFY | LBS_NOREDRAW |
  119. LBS_NOINTEGRALHEIGHT
  120. ICON IDI_JOYPOV_NONE,IDC_JOYPOV,237,37,18,20
  121. CTEXT "Point of view hat",IDC_JOYPOV_LABEL,231,64,28,24
  122. CTEXT "Rudder",IDC_JOYLIST3_LABEL,111,80,36,9
  123. LISTBOX IDC_JOYLIST3,124,37,10,40,NOT LBS_NOTIFY | LBS_NOREDRAW |
  124. LBS_NOINTEGRALHEIGHT
  125. CTEXT "U axis",IDC_JOYLIST4_LABEL,149,80,36,9
  126. LISTBOX IDC_JOYLIST4,162,37,10,40,NOT LBS_NOTIFY | LBS_NOREDRAW |
  127. LBS_NOINTEGRALHEIGHT
  128. CTEXT "V axis",IDC_JOYLIST5_LABEL,187,80,36,9
  129. LISTBOX IDC_JOYLIST5,200,37,10,40,NOT LBS_NOTIFY | LBS_NOREDRAW |
  130. LBS_NOINTEGRALHEIGHT
  131. END
  132. IDD_JOYCALIBRATE DIALOG DISCARDABLE 0, 0, 240, 163
  133. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  134. CAPTION "Joystick Calibration"
  135. FONT 8, "MS Shell Dlg"
  136. BEGIN
  137. PUSHBUTTON "&Test ...",IDC_JOYTEST,25,142,50,14,NOT WS_VISIBLE
  138. PUSHBUTTON "Capture &POV",IDC_JOYPICKPOV,25,142,50,14,NOT
  139. WS_VISIBLE
  140. PUSHBUTTON "< &Back",IDC_JOYCALBACK,79,142,50,14
  141. PUSHBUTTON "&Next >",IDC_JOYCALNEXT,129,142,50,14
  142. PUSHBUTTON "&Finish",IDC_JOYCALDONE,129,142,50,14,NOT WS_VISIBLE
  143. PUSHBUTTON "Cancel",IDCANCEL,183,142,50,14
  144. LTEXT "",IDC_JOYCALMSG,14,21,211,35
  145. GROUPBOX "Calibration information",IDC_GROUPBOX,6,7,228,128
  146. LISTBOX IDC_JOYLIST1,35,66,45,40,NOT LBS_NOTIFY | LBS_NOREDRAW |
  147. LBS_NOINTEGRALHEIGHT
  148. CTEXT "Throttle",IDC_JOYLIST2_LABEL,95,109,34,18
  149. CTEXT "Joystick",IDC_JOYLIST1_LABEL,25,109,65,18
  150. LISTBOX IDC_JOYLIST2,107,66,10,40,NOT LBS_NOTIFY | LBS_NOREDRAW |
  151. LBS_NOINTEGRALHEIGHT
  152. CTEXT "Rudder",IDC_JOYLIST3_LABEL,133,109,34,18
  153. LISTBOX IDC_JOYLIST3,145,66,10,40,NOT LBS_NOTIFY | LBS_NOREDRAW |
  154. LBS_NOINTEGRALHEIGHT
  155. ICON IDI_JOYPOV_NONE,IDC_JOYPOV,182,65,18,20
  156. CTEXT "Point of view hat",IDC_JOYPOV_LABEL,176,92,31,34
  157. END
  158. IDD_JOYCALIBRATE1 DIALOG DISCARDABLE 0, 0, 316, 163
  159. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  160. CAPTION "Joystick Calibration"
  161. FONT 8, "MS Shell Dlg"
  162. BEGIN
  163. PUSHBUTTON "&Test ...",IDC_JOYTEST,95,142,50,14,NOT WS_VISIBLE
  164. PUSHBUTTON "Capture &POV",IDC_JOYPICKPOV,95,142,50,14,NOT
  165. WS_VISIBLE
  166. PUSHBUTTON "< &Back",IDC_JOYCALBACK,149,142,50,14
  167. PUSHBUTTON "&Next >",IDC_JOYCALNEXT,199,142,50,14
  168. PUSHBUTTON "&Finish",IDC_JOYCALDONE,199,142,50,14,NOT WS_VISIBLE
  169. PUSHBUTTON "Cancel",IDCANCEL,253,142,50,14
  170. LTEXT "",IDC_JOYCALMSG,14,21,272,35
  171. GROUPBOX "Calibration information",IDC_GROUPBOX,6,7,304,128
  172. LISTBOX IDC_JOYLIST1,35,66,45,40,NOT LBS_NOTIFY | LBS_NOREDRAW |
  173. LBS_NOINTEGRALHEIGHT
  174. CTEXT "Throttle",IDC_JOYLIST2_LABEL,95,109,34,18
  175. CTEXT "Joystick",IDC_JOYLIST1_LABEL,25,109,65,18
  176. LISTBOX IDC_JOYLIST2,107,66,10,40,NOT LBS_NOTIFY | LBS_NOREDRAW |
  177. LBS_NOINTEGRALHEIGHT
  178. CTEXT "Rudder",IDC_JOYLIST3_LABEL,133,109,34,18
  179. LISTBOX IDC_JOYLIST3,145,66,10,40,NOT LBS_NOTIFY | LBS_NOREDRAW |
  180. LBS_NOINTEGRALHEIGHT
  181. ICON IDI_JOYPOV_NONE,IDC_JOYPOV,258,65,18,20
  182. CTEXT "Point of view hat",IDC_JOYPOV_LABEL,253,92,31,25
  183. CTEXT "U axis",IDC_JOYLIST4_LABEL,171,110,34,18
  184. LISTBOX IDC_JOYLIST4,183,67,10,40,NOT LBS_NOTIFY | LBS_NOREDRAW |
  185. LBS_NOINTEGRALHEIGHT
  186. CTEXT "V axis",IDC_JOYLIST5_LABEL,209,110,34,18
  187. LISTBOX IDC_JOYLIST5,221,67,10,40,NOT LBS_NOTIFY | LBS_NOREDRAW |
  188. LBS_NOINTEGRALHEIGHT
  189. END
  190. IDD_JOYCUSTOM DIALOG DISCARDABLE 0, 0, 240, 177
  191. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | DS_CONTEXTHELP
  192. CAPTION "Custom Joystick"
  193. FONT 8, "MS Shell Dlg"
  194. BEGIN
  195. DEFPUSHBUTTON "OK",IDOK,129,156,50,14
  196. PUSHBUTTON "Cancel",IDCANCEL,183,156,50,14
  197. RADIOBUTTON "2 &axes",IDC_JOY2AXIS,13,20,40,10
  198. RADIOBUTTON "3 a&xes",IDC_JOY3AXIS,70,20,40,10
  199. RADIOBUTTON "4 ax&es",IDC_JOY4AXIS,127,20,40,10
  200. RADIOBUTTON "2 &buttons",IDC_JOY2BUTTON,13,53,45,10
  201. RADIOBUTTON "4 b&uttons",IDC_JOY4BUTTON,70,53,45,10
  202. GROUPBOX "",IDC_GROUPBOX_3,7,74,226,54
  203. CONTROL "&Special features",IDC_JOYUSESPECIAL,"Button",
  204. BS_AUTOCHECKBOX | WS_TABSTOP,13,73,65,10
  205. RADIOBUTTON "Is a &flight yoke",IDC_JOYISYOKE,13,87,107,10
  206. RADIOBUTTON "Is a &game pad",IDC_JOYISGAMEPAD,13,99,107,10
  207. RADIOBUTTON "Is a &race car controller",IDC_JOYISCARCTRL,13,111,107,
  208. 10
  209. CONTROL "Has &point of view hat",IDC_JOYHASPOV,"Button",
  210. BS_AUTOCHECKBOX | WS_TABSTOP,7,133,110,10
  211. GROUPBOX "Axes",IDC_GROUPBOX,7,7,226,30
  212. GROUPBOX "Buttons",IDC_GROUPBOX_2,7,40,226,30
  213. END
  214. STRINGTABLE PRELOAD DISCARDABLE
  215. BEGIN
  216. IDS_JOY "Joystick"
  217. IDS_JOY2 "joystick"
  218. IDS_JOY2S "joystick's"
  219. IDS_JOYINFO "Changes settings for joystick devices."
  220. IDS_JOYCALXY_CENTER "To set your joystick's center position, leave its handle centered, and then press one of your joystick's buttons."
  221. IDS_JOYCALXY_CENTER2 "To confirm your joystick's center position, leave its handle centered, and then press one of your joystick's buttons."
  222. IDS_JOYCALXY_CENTERGAMEPAD "To set the center position of your game pad's thumb control, press a button on your game pad without pressing the thumb control."
  223. IDS_JOYCALXY_CENTERGAMEPAD2 "To confirm the thumb control's center position, press a button on your game pad without pressing the thumb control."
  224. IDS_JOYCALXY_CENTERYOKE "To set the center position for your flight yoke, leave the yoke centered, and then press one of its buttons."
  225. IDS_JOYCALXY_CENTERYOKE2 "To confirm your flight yoke's center position, leave the yoke centered, and then press one of its buttons."
  226. IDS_JOYCALXY_CENTERCAR "To set the center position for your race car controller's steering wheel and pedals, keep the wheel centered, keep your feet off the brake and gas pedals, and then press one of the car controller's buttons."
  227. IDS_JOYCALXY_CENTERCAR2 "To confirm the center position for your race car controller's steering wheel and pedals, leave the wheel centered, keep your feet off the brake and gas pedals, and then press one of the car controller's buttons."
  228. IDS_JOYCALXY_MOVE "To set your joystick's range of motion, move its handle in complete circles several times, and then press one of your joystick's buttons."
  229. IDS_JOYCALXY_MOVEGAMEPAD "To calibrate the range of motion for your game pad's thumb control, press all eight of the thumb control's corners, and then press one of the game pad's buttons."
  230. IDS_JOYCALXY_MOVEYOKE "To calibrate your flight yoke's range of motion, move the yoke all the way in and out several times. Then move it all the way to the left and right several times. Finally, press one of the flight yoke's buttons."
  231. IDS_JOYCALXY_MOVECAR "To calibrate your race car controller's range of motion, move the steering wheel all the way to the left and right several times. Then press the brake and gas pedals fully several times. Finally, press one of the race car controller's buttons."
  232. IDS_JOYCALZ_MOVE "To set the range of motion for your throttle, move it all the way up and all the way down several times, and then press one of your %s buttons."
  233. IDS_JOYCALPOV_MOVE "To set the %1 position for your %2 point of view (POV) hat, move the POV hat to the %3 position, and then press ENTER."
  234. IDS_JOYCALRUDDER_MOVE "To set the range of motion for your rudder control, move it all the way from one side to the other several times, and then press one of your %s buttons."
  235. IDS_JOYCALU_MOVE "To set the range of motion for your U-axis, move it all the way up and all the way down several times, and then press one of your %s buttons."
  236. IDS_JOYCALV_MOVE "To set the range of motion for your V-axis, move it all the way up and all the way down several times, and then press one of your %s buttons."
  237. IDS_JOYCAL_DONE "You have successfully calibrated your %s. To test your %s calibration, click Test. To save your calibration settings, click Finish."
  238. IDS_JOYCAL_NOTDONE "You have not finished calibrating your %s. To finish calibrating it, click Back."
  239. IDS_JOYCAL_CAR "car controller"
  240. IDS_JOYCAL_GAMEPAD "game pad"
  241. IDS_JOYCAL_YOKE "flight yoke"
  242. IDS_JOYCAL_CARS "car controller's"
  243. IDS_JOYCAL_GAMEPADS "game pad's"
  244. IDS_JOYCAL_YOKES "flight yoke's"
  245. IDS_JOYCAL_UP "up"
  246. IDS_JOYCAL_DOWN "down"
  247. IDS_JOYCAL_LEFT "left"
  248. IDS_JOYCAL_RIGHT "right"
  249. IDS_JOYTESTCAPN "Joystick %d Test"
  250. IDS_JOYCALCAPN "Joystick %d Calibration"
  251. IDS_JOYBUTTON1 "Button 1"
  252. IDS_JOYBUTTON2 "Button 2"
  253. IDS_JOYUNPLUGGED "Your joystick is not connected correctly."
  254. IDS_JOYNOTPRESENT "Your computer does not have a joystick port."
  255. IDS_JOYREADERROR "Error Reading the Joystick"
  256. IDS_JOYRESTARTMSG1 "You must restart your computer before the new settings will take effect.\n\nDo you want to restart your computer now?" //craig, if this is unused, please delete from file
  257. IDS_JOYRESTARTMSG2 "Joystick Settings Change" //craig, i think this, too, may be unused
  258. IDS_JOYCALINDICATOR "\n(done)"
  259. IDS_VAXIS_LABEL "V axis"
  260. IDS_UAXIS_LABEL "U axis"
  261. IDS_POVAXIS_LABEL "Point of view hat"
  262. IDS_ZAXIS_LABEL "Throttle"
  263. IDS_XYAXIS_LABEL "Joystick"
  264. IDS_RAXIS_LABEL "Rudder"
  265. IDS_JOYHW0 "(none)"
  266. IDS_JOYHW1 "(Custom ...)"
  267. IDS_JOYHW2 "2-axis, 2-button joystick"
  268. IDS_JOYHW3 "2-axis, 4-button joystick"
  269. IDS_JOYHW4 "2-button gamepad"
  270. IDS_JOYHW5 "2-button flight yoke"
  271. IDS_JOYHW6 "2-button flight yoke w/throttle"
  272. IDS_JOYHW7 "3-axis, 2-button joystick"
  273. IDS_JOYHW8 "3-axis, 4-button joystick"
  274. IDS_JOYHW9 "4-button gamepad"
  275. IDS_JOYHW10 "4-button flight yoke"
  276. IDS_JOYHW11 "4-button flight yoke w/throttle"
  277. END