Leaked source code of windows server 2003
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.

293 lines
6.8 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_DIRECTINPUT 19
  40. /*
  41. * IDS_DIRECTINPUTDEVICE
  42. *
  43. * CLSID name for OLE registration.
  44. */
  45. #define IDS_DIRECTINPUTDEVICE 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_UNKNOWNTEMPLATEFORMAT
  101. *
  102. * Template format for Unknown device object.
  103. */
  104. #define IDS_UNKNOWNTEMPLATEFORMAT 36
  105. /*
  106. * IDS_MOUSEOBJECT+0 ... IDS_MOUSEOBJECT+255
  107. *
  108. * Friendly names for mouse device objects.
  109. */
  110. #define IDS_MOUSEOBJECT 0x0100
  111. /*
  112. * IDS_KEYBOARDOBJECT+0 ... IDS_KEYBOARDOBJECT+255
  113. *
  114. * Friendly names for keyboard objects.
  115. */
  116. #define IDS_KEYBOARDOBJECT 0x0200
  117. /*
  118. * IDS_JOYSTICKOBJECT+0 ... IDS_JOYSTICKOBJECT+255
  119. *
  120. * Friendly names for joystick objects.
  121. */
  122. #define IDS_JOYSTICKOBJECT 0x0300
  123. /*
  124. * IDS_PREDEFJOYTYPE+0 ... IDS_PREDEFJOYTYPE+255
  125. *
  126. * Friendly names for predefined joystick types.
  127. */
  128. #define IDS_PREDEFJOYTYPE 0x0400
  129. /* Gap of 256 string IDs for alignment */
  130. /*
  131. * IDS_PAGE_GENERIC+0 ... IDS_PAGE_GENERIC+511
  132. *
  133. * Friendly names for HID Usage Page = Generic
  134. */
  135. #define IDS_PAGE_GENERIC 0x0600
  136. /*
  137. * IDS_PAGE_VEHICLE+0 ... IDS_PAGE_VEHICLE+511
  138. *
  139. * Friendly names for HID Usage Page = Vehicle
  140. */
  141. #define IDS_PAGE_VEHICLE 0x0800
  142. /*
  143. * IDS_PAGE_VR+0 ... IDS_PAGE_VR+511
  144. *
  145. * Friendly names for HID Usage Page = VR
  146. */
  147. #define IDS_PAGE_VR 0x0A00
  148. /*
  149. * IDS_PAGE_SPORT+0 ... IDS_PAGE_SPORT+511
  150. *
  151. * Friendly names for HID Usage Page = Sport Controls
  152. */
  153. #define IDS_PAGE_SPORT 0x0C00
  154. /*
  155. * IDS_PAGE_GAME+0 ... IDS_PAGE_GAME+511
  156. *
  157. * Friendly names for HID Usage Page = Game Controls
  158. */
  159. #define IDS_PAGE_GAME 0x0E00
  160. /*
  161. * IDS_PAGE_LED+0 ... IDS_PAGE_LED+511
  162. *
  163. * Friendly names for HID Usage Page = LEDs
  164. */
  165. #define IDS_PAGE_LED 0x1000
  166. /*
  167. * IDS_PAGE_TELEPHONY+0 ... IDS_PAGE_TELEPHONY+511
  168. *
  169. * Friendly names for HID Usage Page = Telephony
  170. */
  171. #define IDS_PAGE_TELEPHONY 0x1200
  172. /*
  173. * IDS_PAGE_CONSUMER+0 ... IDS_PAGE_CONSUMER+511
  174. *
  175. * Friendly names for HID Usage Page = Consumer
  176. */
  177. #define IDS_PAGE_CONSUMER 0x1400
  178. /*
  179. * IDS_PAGE_DIGITIZER+0 ... IDS_PAGE_DIGITIZER+511
  180. *
  181. * Friendly names for HID Usage Page = Digitizer
  182. */
  183. #define IDS_PAGE_DIGITIZER 0x1600
  184. /*
  185. * IDS_PAGE_KEYBOARD+0 ... IDS_PAGE_KEYBOARD+511
  186. *
  187. * Friendly names for HID Usage Page = Keyboard
  188. */
  189. #define IDS_PAGE_KEYBOARD 0x1800
  190. /*
  191. * IDS_PAGE_PID+0 ... IDS_PAGE_PID+511
  192. *
  193. * Friendly names for HID Usage Page = PID
  194. */
  195. #define IDS_PAGE_PID 0x1A00
  196. /*****************************************************************************
  197. *
  198. * RCDATA
  199. *
  200. * Japanese keyboard translation tables are stored in resources.
  201. *
  202. * This lets us change them at the last minute without too much risk.
  203. *
  204. * It also keeps them out of our image.
  205. *
  206. *****************************************************************************/
  207. #define IDDATA_KBD_NEC98 1
  208. #define IDDATA_KBD_NEC98LAPTOP IDDATA_KBD_NEC98 /* The same */
  209. #define IDDATA_KBD_NEC98_106 2
  210. #define IDDATA_KBD_JAPAN106 3
  211. #define IDDATA_KBD_JAPANAX 4
  212. #define IDDATA_KBD_J3100 5
  213. #define IDDATA_KBD_PCENH 6
  214. #define IDDATA_KBD_NEC98_NT 7
  215. #define IDDATA_KBD_NEC98LAPTOP_NT IDDATA_KBD_NEC98_NT /* The same */
  216. #define IDDATA_KBD_NEC98_106_NT 8
  217. /*****************************************************************************
  218. *
  219. * RCDATA
  220. *
  221. * The mapping between HID usages
  222. *
  223. * This lets us change them at the last minute without too much risk.
  224. *
  225. * It also keeps them out of our image.
  226. *
  227. *****************************************************************************/
  228. #define IDDATA_HIDMAP 9
  229. /*****************************************************************************
  230. * Template for Generic Joystick Names
  231. *
  232. * Modified from MsJstick.
  233. *
  234. * Assigning a default name to A HID device, when there is none in the registry
  235. *
  236. * Note, string IDs for PLAIN_STICK to IDS_HEAD_TRACKER must stay contiguous
  237. * and in order. The various PLAIN_STICKs are present to make a one to one
  238. * mapping from joystick subtype to string ID.
  239. *
  240. *****************************************************************************/
  241. #define IDS_TEXT_TEMPLATE 0x0002000
  242. #define IDS_PLAIN_STICK 0x0002001
  243. #define IDS_PLAIN_STICK2 0x0002002
  244. #define IDS_FLIGHT_CTRL 0x0002003
  245. #define IDS_GAMEPAD 0x0002004
  246. #define IDS_PLAIN_STICK3 0x0002005
  247. #define IDS_DRIVE_CTRL 0x0002006
  248. #define IDS_HEAD_TRACKER 0x0002007
  249. #define IDS_DEVICE_NAME 0x0002008
  250. #define IDS_WITH_POV 0x0002009