joystick.txt 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. Title: Description of Windows 95 Quake 2 support for DirectInput devices such as:
  2. standard joysticks
  3. FPgaming Assassin 3D www.fpgaming.com
  4. Logitech WingMan Warrior www.logitech.com
  5. Mad Catz Panther www.madcatz.com
  6. Mad Catz Panther XL www.madcatz.com
  7. SpaceTec IMC SpaceOrb 360 www.spacetec.com
  8. File: JOYSTICK.TXT
  9. Revision History:
  10. 02/21/97 JCB Quake 1: Created by FPgaming, Inc. (www.fpgaming.com) -- Creators of the Assassin 3D.
  11. 03/12/97 id Quake 1: Joysticks are disabled by default now.
  12. 10/28/97 JCB Quake 2: Added up/down axis control for SpaceOrb 360 users, changed names to joy_* and changed 'joystick to 'in_joystick'.
  13. Overview:
  14. The input device support in Quake 2 is designed to take full advantage of your DirectInput device. Standard joysticks, digital joysticks and new advanced controllers are all supported.
  15. Standard Joystick Directions:
  16. 1. Verify your joystick or game controller is selected in the Joystick (or Game Controllers) control panel applet.
  17. 2. Verify your device has been calibrated and tested.
  18. 3. Launch Quake 2 (quake2.exe).
  19. 4. Type 'in_joystick 1' at the console to enable your joystick (only needs to by typed in one time).
  20. From then on, just launch Quake 2.
  21. Advanced Controller Directions:
  22. 1. Verify your joystick or game controller is selected in the Joystick (or Game Controllers) control panel applet.
  23. 2. Verify your device has been calibrated and tested.
  24. 3. Get the configuration file for your controller from your manufacturer's website or copy from the selections below.
  25. 4. Place the configuration file in your quake2\baseq2 directory.
  26. 6. Launch Quake 2 (quake2.exe).
  27. 7. Type 'exec <configuration file name here>' at the console to enable your advanced controller each time you launch Quake 2.
  28. Optionally you can:
  29. Create or modify quake2\baseq2\autoexec.cfg to include an exec to your configuration file (i.e. 'exec adva3d.cfg'). This will automatically load your configuration file each time you launch Quake 2.
  30. From then on, just launch Quake 2.
  31. Details:
  32. (This may be more information than you ever wanted to know.)
  33. Standard Joystick Support
  34. The standard joystick support has been enhanced to provide the following:
  35. 1. proportional movement (the farther you move the stick, the faster you move)
  36. 2. support for up to 32 buttons (JOY1-JOY4 and AUX5-AUX32)
  37. 3. sensitivity setting for each control (allows tuning and inverting the control direction)
  38. 4. dead-zone setting for each control
  39. The default joystick setting is for joystick left/right movement to control turning and for joystick forward/backward movement to control moving forward/backward. For optional strafing, add the 'sidestep' feature to one of your buttons (via the Customize menu). For optional looking, add the 'mouse look' feature to one of your buttons (also via the Customize menu).
  40. Additionally, there are several features that you can set from the Options menu. 'Always Run' allows you change your maximum speed from walking to running. 'Invert Mouse' allows you to change the direction the joystick has to move to when looking up and down. 'Lookspring' enables automatic look-forward-when-moving. And, 'Lookstrafe' automatically enables strafing when the 'mouse look' button is pressed.
  41. The following variables control your sensititivity settings:
  42. joy_forwardsensitivity - controls the ramp-up speed for moving forward and backward
  43. joy_sidesensitivity - controls the ramp-up speed for moving side to side
  44. joy_upsensitivity - controls the ramp-up speed for moving up and down
  45. joy_pitchsensitivity - controls the speed that you look up and down
  46. joy_yawsensitivity - controls the speed that you look left to right
  47. You can set the sensitivity settings to negative numbers. This inverts the direction of movement for the control. The default sensitivity settings are 1 (or -1). There is no limit on the range; whatever feels good.
  48. The following variables control your threshold settings:
  49. joy_forwardthreshold - controls the dead-zone for moving forward and backward
  50. joy_sidethreshold - controls the dead-zone for moving side to side
  51. joy_upthreshold - controls the dead-zone for moving up and down
  52. joy_pitchthreshold - controls the dead-zone for looking up and down
  53. joy_yawthreshold - controls the dead-zone for looking left and right
  54. The threshold settings allow you to control your dead-zone (or no-movement zone). The default threshold settings are .15 (meaning 15% of the full-range). The range of the threshold settings is from 0 to 1. Troublesome analog joysticks may need a larger number (like .2). Premium joysticks can use a smaller number (like .1).
  55. The joystick sensitivity settings and the threshold settings are not saved after you quit your game as inadvertent settings can really hose your control. If you want to keep any changes, add them into your autoexec.cfg file or add an 'exec' call to your configuration file.
  56. If your joystick has a POV hat, the buttons are mapped to AUX29-AUX32. So, you get 8 buttons with the Logitech WingMan Extreme and 12 buttons with the Microsoft SideWinder 3D Pro, etc.
  57. Advanced Controller Support
  58. The following features have been added:
  59. 1. support for all 6 axes (X, Y, Z, R, U, V)
  60. 2. mapping of any axis to any control (Forward, Look, Side, Turn, Up)
  61. 3. proportional movement for all controls
  62. 4. sensitivity setting for any control (allows tuning and inverting the control direction)
  63. 5. threshold setting for any control (allows dead-zone setting)
  64. 6. support for absolute controls (like joysticks) and relative controls (like trackballs)
  65. 7. support for up to 32 buttons (JOY1-JOY4 and AUX5-AUX32)
  66. ******************************************************************************
  67. NOTE: The information below is for game controller companies to integrate their device and for anyone wanting to create a custom setup.
  68. In addition to the above new variables, there are six more for axis mapping. These are:
  69. joy_advaxisx - controls mapping of DirectInput axis X (typically joystick left and right)
  70. joy_advaxisy - controls mapping of DirectInput axis Y (typically joystick forward and backward)
  71. joy_advaxisz - controls mapping of DirectInput axis Z (typically joystick throttle)
  72. joy_advaxisr - controls mapping of DirectInput axis R (typically joystick rudder)
  73. joy_advaxisu - controls mapping of DirectInput axis U (custom axis - Assassin 3D trackball left and right and SpaceOrb roll)
  74. joy_advaxisv - controls mapping of DirectInput axis V (custom axis - Assassin 3D trackball forward and backward and SpaceOrb yaw)
  75. Each joy_advaxis variable can be set to the following controls:
  76. 0 = Axis not used
  77. 1 = Axis is for forward and backward movement
  78. 2 = Axis is for looking up and down (pitch)
  79. 3 = Axis is for side to side movement
  80. 4 = Axis is for turning left and right (yaw)
  81. 5 = Axis is for up and down movement
  82. Additionally, each axis can be designated as an absolute axis (like a joystick) or a relative axis (like the FPgaming trackball). Absolute axes are defined as having a stopping position whereas relative axes don't have a stopping position and just go around and around. To designate an axis as a relative axis, add 16 to the above control number. For example, to set the Assassin 3D's axis U to be looking left and right, type 'joyadvaxisu 20'. As another example, to make your rudder pedals contol turning left and right, type 'joyadvaxisr 4'. It's a bit complicated, but only needs to be done once.
  83. The advanced axes variables will not have any effect until joyadvanced is set to 1. Additionally, any changes to the to the axes will not take effect until the joyadvancedupdate command is executed. So, the procedure for creating an advanced mapping is:
  84. 1. set 'joy_advanced 1'
  85. 2. make any desired mapping changes
  86. 3. make any desired sensitivity changes
  87. 4. make any desired threshold changes
  88. 3. call 'joy_advancedupdate'
  89. Here is the config file for the FPgaming Assassin 3D:
  90. // ADVA3D.CFG
  91. // Revision 2.0 -- refer to www.fpgaming.com for updates
  92. joy_name "FPgaming Assassin 3D"
  93. +mlook
  94. in_joystick 1
  95. joy_advanced 1
  96. joy_advaxisx 3
  97. joy_advaxisy 1
  98. joy_advaxisz 0
  99. joy_advaxisr 0
  100. joy_advaxisu 20
  101. joy_advaxisv 18
  102. joy_forwardsensitivity -1.0
  103. joy_sidesensitivity 1.0
  104. joy_upsensitivity 1.0
  105. joy_pitchsensitivity -0.25
  106. joy_yawsensitivity -0.5
  107. joy_forwardthreshold 0.15
  108. joy_sidethreshold 0.15
  109. joy_upthreshold 0.15
  110. joy_yawthreshold 0.0
  111. joy_pitchthreshold 0.0
  112. joy_advancedupdate
  113. Here is a config file for the Mad Catz Panther and Mad Catz Panther XL:
  114. // ADVPNTHR.CFG
  115. // Revision 2.0 -- refer to www.madcatz.com for updates
  116. joy_name "Mad Catz Panther/Panther XL"
  117. +mlook
  118. in_joystick 1
  119. joy_advanced 1
  120. joy_advaxisx 3
  121. joy_advaxisy 1
  122. joy_advaxisz 0
  123. joy_advaxisr 0
  124. joy_advaxisu 20
  125. joy_advaxisv 18
  126. joy_forwardsensitivity -1.0
  127. joy_sidesensitivity 1.0
  128. joy_upsensitivity 1.0
  129. joy_pitchsensitivity -0.25
  130. joy_yawsensitivity -0.5
  131. joy_forwardthreshold 0.15
  132. joy_sidethreshold 0.15
  133. joy_upthreshold 0.15
  134. joy_yawthreshold 0.0
  135. joy_pitchthreshold 0.0
  136. joy_advancedupdate
  137. Here is a config file for the Logitech WingMan Warrior:
  138. // ADVWW.CFG
  139. // Revision 0.2 -- refer to www.logitech.com for updates
  140. joy_name "Logitech WingMan Warrior"
  141. in_joystick 1
  142. joy_advanced 1
  143. joy_advaxisx 3
  144. joy_advaxisy 1
  145. joy_advaxisz 0
  146. joy_advaxisr 4
  147. joy_advaxisu 0
  148. joy_advaxisv 0
  149. joy_forwardsensitivity -1.0
  150. joy_sidesensitivity 1.0
  151. joy_upsensitivity 1.0
  152. joy_pitchsensitivity 0.0
  153. joy_yawsensitivity -3.0
  154. joy_forwardthreshold 0.15
  155. joy_sidethreshold 0.15
  156. joy_upthreshold 0.15
  157. joy_pitchthreshold 0.0
  158. joy_yawthreshold 0.0
  159. joy_advancedupdate
  160. Here is a config file for the SpaceTec IMC SpaceOrb 360:
  161. // ADVSPORB.CFG
  162. // Revision 0.2 -- refer to www.spacetec.com for updates
  163. joy_name "SpaceTec IMC SpaceOrb 360"
  164. +mlook
  165. in_joystick 1
  166. joy_advanced 1
  167. joy_advaxisx 3
  168. joy_advaxisy 0
  169. joy_advaxisz 1
  170. joy_advaxisr 2
  171. joy_advaxisu 4
  172. joy_advaxisv 5
  173. joy_forwardsensitivity 2.5
  174. joy_sidesensitivity 2.0
  175. joy_upsensitivity -2.0
  176. joy_pitchsensitivity 2.0
  177. joy_yawsensitivity 5.0
  178. joy_forwardthreshold 0.0
  179. joy_sidethreshold 0.0
  180. joy_upthreshold 0.15
  181. joy_pitchthreshold 0.1
  182. joy_yawthreshold 0.0
  183. joy_advancedupdate
  184. Here is a config file for making your joystick operate looking around and strafing, your rudder pedals control turning left and right and throttle control moving forward and backward:
  185. joy_name "Joystick, Rudder & Throttle"
  186. in_joystick 1
  187. joy_advanced 1
  188. joy_advaxisx 3
  189. joy_advaxisy 2
  190. joy_advaxisz 1
  191. joy_advaxisr 4
  192. joy_advaxisu 0
  193. joy_advaxisv 0
  194. joy_forwardsensitivity -1.0
  195. joy_sidesensitivity -1.0
  196. joy_upsensitivity 1.0
  197. joy_pitchsensitivity 1.0
  198. joy_yawsensitivity -1.0
  199. joy_forwardthreshold 0.15
  200. joy_sidethreshold 0.15
  201. joy_upthreshold 0.15
  202. joy_pitchthreshold 0.15
  203. joy_yawthreshold 0.15
  204. joy_advancedupdate