mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
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:
parent
c0f93c2aad
commit
11e8db76a8
2 changed files with 503 additions and 502 deletions
|
@ -353,6 +353,7 @@ int initinput(void)
|
||||||
joydev = SDL_JoystickOpen(0);
|
joydev = SDL_JoystickOpen(0);
|
||||||
if (joydev) {
|
if (joydev) {
|
||||||
SDL_JoystickEventState(SDL_ENABLE);
|
SDL_JoystickEventState(SDL_ENABLE);
|
||||||
|
inputdevices |= 4;
|
||||||
|
|
||||||
joynumaxes = SDL_JoystickNumAxes(joydev);
|
joynumaxes = SDL_JoystickNumAxes(joydev);
|
||||||
joynumbuttons = min(32,SDL_JoystickNumButtons(joydev));
|
joynumbuttons = min(32,SDL_JoystickNumButtons(joydev));
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue