start of joystick support, just selects first joystick for now and only maps first two buttons to first two mouse buttons. Will add more button mappings and a -j options to specify joystick in future

svn-id: r6528
This commit is contained in:
Jonathan Gray 2003-01-20 16:29:26 +00:00
parent 1043ec1df9
commit 473cbb8437
2 changed files with 58 additions and 1 deletions

View file

@ -181,6 +181,9 @@ protected:
MousePos() : x(0), y(0), w(0), h(0) {}
};
// joystick
SDL_Joystick *_joystick;
bool _mouseVisible;
bool _mouseDrawn;
byte *_mouseData;
@ -214,6 +217,7 @@ protected:
void setup_icon();
void kbd_mouse();
void init_joystick() { _joystick = SDL_JoystickOpen(0); }
static OSystem_SDL_Common *create();
};