Fix from JonoF for using a joystick in combination with SDLayer.

git-svn-id: https://svn.eduke32.com/eduke32@289 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2006-09-02 02:34:29 +00:00
parent c0f93c2aad
commit 11e8db76a8
2 changed files with 503 additions and 502 deletions

View file

@ -353,6 +353,7 @@ int initinput(void)
joydev = SDL_JoystickOpen(0);
if (joydev) {
SDL_JoystickEventState(SDL_ENABLE);
inputdevices |= 4;
joynumaxes = SDL_JoystickNumAxes(joydev);
joynumbuttons = min(32,SDL_JoystickNumButtons(joydev));

File diff suppressed because it is too large Load diff