| •1 |
**************** |
| 2 |
* INTRODUCTION * |
| 3 |
**************** |
| 4 |
The joystick support is implemented using SDL. The command line option '-j' will |
| 5 |
prompt you (of course in command line :) with joystick configuration. Do exactly as |
| 6 |
you are asked. The configuration will be saved in a file ".gravitywars-joystick-settings" |
| 7 |
in your home directory. From next time, configurations will be loaded from the file. |
| 8 |
By default, there is no file, and default joystick values (embeded in program code) |
| 9 |
are used. You must use '-j' atleast once for the configuration file to be created. |
| 10 |
|
| 11 |
There are also some environment variables which can be used to manually setup your |
| 12 |
joystick. They are parsed after the configuration file, so they overshadow the confi- |
| 13 |
guration file, but are not saved when program exits. |
| 14 |
|
| 15 |
************************* |
| 16 |
* ENVIRONMENT VARIABLES * |
| 17 |
************************* |
| 18 |
GW_JOY_INDEX |
| 19 |
GW_JOY_XAXIS |
| 20 |
GW_JOY_YAXIS |
| 21 |
GW_JOY_BUTTON_UP |
| 22 |
GW_JOY_BUTTON_SHOOT |
| 23 |
GW_JOY_BUTTON_TOGGLE_FULLSCREEN |
| 24 |
GW_JOY_BUTTON_ESCAPE |
| 25 |
GW_JOY_XAXIS_CENTER |
| 26 |
GW_JOY_XAXIS_MINIMUM |
| 27 |
GW_JOY_XAXIS_MAXIMUM |
| 28 |
GW_JOY_XAXIS_NULLZONE |
| 29 |
GW_JOY_YAXIS_CENTER |
| 30 |
GW_JOY_YAXIS_MINIMUM |
| 31 |
GW_JOY_YAXIS_MAXIMUM |
| 32 |
GW_JOY_YAXIS_NULLZONE |
| 33 |
|
| 34 |
******** |
| 35 |
* BUGS * |
| 36 |
******** |
| 37 |
If you unplug the joystick, or somehow disable joystick event during joystick conf- |
| 38 |
iguration, the program will stuck there. 'killall -HUP gravitywars' will do the job though. |
| 39 |
|
| 40 |
********** |
| 41 |
* AUTHOR * |
| 42 |
********** |
| 43 |
Titon Barua / titanix |
| 44 |
[email protected] |