**************** * INTRODUCTION * **************** The joystick support is implemented using SDL. The command line option '-j' will prompt you (of course in command line :) with joystick configuration. Do exactly as you are asked. The configuration will be saved in a file ".gravitywars-joystick-settings" in your home directory. From next time, configurations will be loaded from the file. By default, there is no file, and default joystick values (embeded in program code) are used. You must use '-j' atleast once for the configuration file to be created. There are also some environment variables which can be used to manually setup your joystick. They are parsed after the configuration file, so they overshadow the confi- guration file, but are not saved when program exits. ************************* * ENVIRONMENT VARIABLES * ************************* GW_JOY_INDEX GW_JOY_XAXIS GW_JOY_YAXIS GW_JOY_BUTTON_UP GW_JOY_BUTTON_SHOOT GW_JOY_BUTTON_TOGGLE_FULLSCREEN GW_JOY_BUTTON_ESCAPE GW_JOY_XAXIS_CENTER GW_JOY_XAXIS_MINIMUM GW_JOY_XAXIS_MAXIMUM GW_JOY_XAXIS_NULLZONE GW_JOY_YAXIS_CENTER GW_JOY_YAXIS_MINIMUM GW_JOY_YAXIS_MAXIMUM GW_JOY_YAXIS_NULLZONE ******** * BUGS * ******** If you unplug the joystick, or somehow disable joystick event during joystick conf- iguration, the program will stuck there. 'killall -HUP gravitywars' will do the job though. ********** * AUTHOR * ********** Titon Barua / titanix titanix88@gmail.com