diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-07-15 08:21:06 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-07-15 08:21:06 +0000 |
commit | 13cb522b404a97172255df898d7674fe6b16cedd (patch) | |
tree | b9cd647a456349984ea038e9b172bff24b7bd5f4 /src/game.h | |
parent | c44f66d94c9a26e2a13e59334abe18c63f925b74 (diff) | |
download | mana-13cb522b404a97172255df898d7674fe6b16cedd.tar.gz mana-13cb522b404a97172255df898d7674fe6b16cedd.tar.bz2 mana-13cb522b404a97172255df898d7674fe6b16cedd.tar.xz mana-13cb522b404a97172255df898d7674fe6b16cedd.zip |
Enabling support for joypads:
- Only <=6 buttons are supported
- Only the first jopad is used (if you have more than one)
- Axes need to be tuned
- You can only move and attack with joypad
Small fix in the updating system
Diffstat (limited to 'src/game.h')
-rw-r--r-- | src/game.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -58,6 +58,25 @@ extern int server_tick; extern bool displayPathToMouse; extern int startX, startY; +enum { + JOY_UP, + JOY_DOWN, + JOY_LEFT, + JOY_RIGHT, + JOY_BTN0, + JOY_BTN1, + JOY_BTN2, + JOY_BTN3, + JOY_BTN4, + JOY_BTN5, + JOY_BTN6, + JOY_BTN7, + JOY_BTN8, + JOY_BTN9, + JOY_BTN10, + JOY_BTN11 +}; + /** * Main game loop */ |