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.

299 lines
6.5 KiB

  1. /***************************************************************************
  2. *
  3. * Copyright (C) 1996 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: dinputrc.h
  6. * Content: DirectInput internal resource header file
  7. *
  8. ***************************************************************************/
  9. /*****************************************************************************
  10. *
  11. * Strings
  12. *
  13. *****************************************************************************/
  14. /*
  15. * IDS_STDMOUSE
  16. *
  17. * Friendly name for the standard mouse device.
  18. */
  19. #define IDS_STDMOUSE 16
  20. /*
  21. * IDS_STDKEYBOARD
  22. *
  23. * Friendly name for the standard keyboard device.
  24. */
  25. #define IDS_STDKEYBOARD 17
  26. /*
  27. * IDS_STDJOYSTICK
  28. *
  29. * Friendly name for the standard joystick devices.
  30. *
  31. * This string contains a %d.
  32. */
  33. #define IDS_STDJOYSTICK 18
  34. /*
  35. * IDS_DIRECTINPUT
  36. *
  37. * CLSID name for OLE registration.
  38. */
  39. #define IDS_DIRECTINPUT8 19
  40. /*
  41. * IDS_DIRECTINPUTDEVICE
  42. *
  43. * CLSID name for OLE registration.
  44. */
  45. #define IDS_DIRECTINPUTDEVICE8 20
  46. /*
  47. * IDS_BUTTONTEMPLATE
  48. *
  49. * Template for generic button name.
  50. */
  51. #define IDS_BUTTONTEMPLATE 28
  52. /*
  53. * IDS_AXISTEMPLATE
  54. *
  55. * Template for generic axis name.
  56. */
  57. #define IDS_AXISTEMPLATE 29
  58. /*
  59. * IDS_POVTEMPLATE
  60. *
  61. * Template for generic POV name.
  62. */
  63. #define IDS_POVTEMPLATE 30
  64. /*
  65. * IDS_COLLECTIONTEMPLATE
  66. *
  67. * Template for generic collection name.
  68. */
  69. #define IDS_COLLECTIONTEMPLATE 31
  70. /*
  71. * IDS_COLLECTIONTEMPLATEFORMAT
  72. *
  73. * Template for generic collection name with room for a "%s"
  74. * where the friendly name is kept.
  75. */
  76. #define IDS_COLLECTIONTEMPLATEFORMAT 32
  77. /*
  78. * IDS_STDGAMEPORT
  79. *
  80. * Friendly name for the standard gameport devices.
  81. *
  82. * This string contains a %d.
  83. */
  84. #define IDS_STDGAMEPORT 33
  85. /*
  86. * IDS_STDSERIALPORT
  87. *
  88. * Friendly name for the standard serialport devices.
  89. *
  90. * This string contains a %d.
  91. */
  92. #define IDS_STDSERIALPORT 34
  93. /*
  94. * IDS_UNKNOWNTEMPLATE
  95. *
  96. * Template for Unknown device object.
  97. */
  98. #define IDS_UNKNOWNTEMPLATE 35
  99. /*
  100. * IDS_DEFAULTUSER
  101. *
  102. * Default name for user if no other could be found.
  103. * (was unused IDS_UNKNOWNTEMPLATEFORMAT)
  104. */
  105. #define IDS_DEFAULTUSER 36
  106. /*
  107. * IDS_MOUSEOBJECT+0 ... IDS_MOUSEOBJECT+255
  108. *
  109. * Friendly names for mouse device objects.
  110. */
  111. #define IDS_MOUSEOBJECT 0x0100
  112. /*
  113. * IDS_KEYBOARDOBJECT_UNKNOWN
  114. *
  115. * Name for key for which no string name could be found.
  116. */
  117. #define IDS_KEYBOARDOBJECT_UNKNOWN 0x01FF
  118. /*
  119. * IDS_KEYBOARDOBJECT+0 ... IDS_KEYBOARDOBJECT+255
  120. *
  121. * Friendly names for keyboard objects.
  122. */
  123. #define IDS_KEYBOARDOBJECT 0x0200
  124. /*
  125. * IDS_JOYSTICKOBJECT+0 ... IDS_JOYSTICKOBJECT+255
  126. *
  127. * Friendly names for joystick objects.
  128. */
  129. #define IDS_JOYSTICKOBJECT 0x0300
  130. /*
  131. * IDS_PREDEFJOYTYPE+0 ... IDS_PREDEFJOYTYPE+255
  132. *
  133. * Friendly names for predefined joystick types.
  134. */
  135. #define IDS_PREDEFJOYTYPE 0x0400
  136. /* Gap of 256 string IDs for alignment */
  137. /*
  138. * IDS_PAGE_GENERIC+0 ... IDS_PAGE_GENERIC+511
  139. *
  140. * Friendly names for HID Usage Page = Generic
  141. */
  142. #define IDS_PAGE_GENERIC 0x0600
  143. /*
  144. * IDS_PAGE_VEHICLE+0 ... IDS_PAGE_VEHICLE+511
  145. *
  146. * Friendly names for HID Usage Page = Vehicle
  147. */
  148. #define IDS_PAGE_VEHICLE 0x0800
  149. /*
  150. * IDS_PAGE_VR+0 ... IDS_PAGE_VR+511
  151. *
  152. * Friendly names for HID Usage Page = VR
  153. */
  154. #define IDS_PAGE_VR 0x0A00
  155. /*
  156. * IDS_PAGE_SPORT+0 ... IDS_PAGE_SPORT+511
  157. *
  158. * Friendly names for HID Usage Page = Sport Controls
  159. */
  160. #define IDS_PAGE_SPORT 0x0C00
  161. /*
  162. * IDS_PAGE_GAME+0 ... IDS_PAGE_GAME+511
  163. *
  164. * Friendly names for HID Usage Page = Game Controls
  165. */
  166. #define IDS_PAGE_GAME 0x0E00
  167. /*
  168. * IDS_PAGE_LED+0 ... IDS_PAGE_LED+511
  169. *
  170. * Friendly names for HID Usage Page = LEDs
  171. */
  172. #define IDS_PAGE_LED 0x1000
  173. /*
  174. * IDS_PAGE_TELEPHONY+0 ... IDS_PAGE_TELEPHONY+511
  175. *
  176. * Friendly names for HID Usage Page = Telephony
  177. */
  178. #define IDS_PAGE_TELEPHONY 0x1200
  179. /*
  180. * IDS_PAGE_CONSUMER+0 ... IDS_PAGE_CONSUMER+511
  181. *
  182. * Friendly names for HID Usage Page = Consumer
  183. */
  184. #define IDS_PAGE_CONSUMER 0x1400
  185. /*
  186. * IDS_PAGE_DIGITIZER+0 ... IDS_PAGE_DIGITIZER+511
  187. *
  188. * Friendly names for HID Usage Page = Digitizer
  189. */
  190. #define IDS_PAGE_DIGITIZER 0x1600
  191. /*
  192. * IDS_PAGE_KEYBOARD+0 ... IDS_PAGE_KEYBOARD+511
  193. *
  194. * Friendly names for HID Usage Page = Keyboard
  195. */
  196. #define IDS_PAGE_KEYBOARD 0x1800
  197. /*
  198. * IDS_PAGE_PID+0 ... IDS_PAGE_PID+511
  199. *
  200. * Friendly names for HID Usage Page = PID
  201. */
  202. #define IDS_PAGE_PID 0x1A00
  203. /*****************************************************************************
  204. *
  205. * RCDATA
  206. *
  207. * Japanese keyboard translation tables are stored in resources.
  208. *
  209. * This lets us change them at the last minute without too much risk.
  210. *
  211. * It also keeps them out of our image.
  212. *
  213. *****************************************************************************/
  214. #define IDDATA_KBD_NEC98 1
  215. #define IDDATA_KBD_NEC98LAPTOP IDDATA_KBD_NEC98 /* The same */
  216. #define IDDATA_KBD_NEC98_106 2
  217. #define IDDATA_KBD_JAPAN106 3
  218. #define IDDATA_KBD_JAPANAX 4
  219. #define IDDATA_KBD_J3100 5
  220. #define IDDATA_KBD_PCENH 6
  221. #define IDDATA_KBD_NEC98_NT 7
  222. #define IDDATA_KBD_NEC98LAPTOP_NT IDDATA_KBD_NEC98_NT /* The same */
  223. #define IDDATA_KBD_NEC98_106_NT 8
  224. /*****************************************************************************
  225. *
  226. * RCDATA
  227. *
  228. * The mapping between HID usages
  229. *
  230. * This lets us change them at the last minute without too much risk.
  231. *
  232. * It also keeps them out of our image.
  233. *
  234. *****************************************************************************/
  235. #define IDDATA_HIDMAP 9
  236. /*****************************************************************************
  237. * Template for Generic Joystick Names
  238. *
  239. * Modified from MsJstick.
  240. *
  241. * Assigning a default name to A HID device, when there is none in the registry
  242. *
  243. * Note, string IDs for PLAIN_STICK, GAMEPAD, DRIVE_CTRL and FLIGHT_CTRL must
  244. * stay contiguous and in order.
  245. *
  246. *****************************************************************************/
  247. #define IDS_TEXT_TEMPLATE 0x0002000
  248. #define IDS_PLAIN_STICK 0x0002001
  249. #define IDS_GAMEPAD 0x0002002
  250. #define IDS_DRIVE_CTRL 0x0002003
  251. #define IDS_FLIGHT_CTRL 0x0002004
  252. #define IDS_HEAD_TRACKER 0x0002005
  253. #define IDS_DEVICE_NAME 0x0002006
  254. #define IDS_WITH_POV 0x0002007
  255.