Register binds for SC_LPADDLE and SC_RPADDLE, fix joy button detection.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5986 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
1c038872f3
commit
42b6d60115
2 changed files with 5 additions and 1 deletions
|
@ -984,7 +984,7 @@ void Sys_SendKeyEvents(void)
|
||||||
// break;
|
// break;
|
||||||
case SDL_JOYBUTTONDOWN:
|
case SDL_JOYBUTTONDOWN:
|
||||||
case SDL_JOYBUTTONUP:
|
case SDL_JOYBUTTONUP:
|
||||||
J_JoystickButton(event.jbutton.which, event.jbutton.button, (event.type==SDL_CONTROLLERBUTTONDOWN) ? 1 : 0);
|
J_JoystickButton(event.jbutton.which, event.jbutton.button, event.type==SDL_JOYBUTTONDOWN);
|
||||||
break;
|
break;
|
||||||
case SDL_JOYDEVICEADDED:
|
case SDL_JOYDEVICEADDED:
|
||||||
J_JoystickAdded(event.jdevice.which);
|
J_JoystickAdded(event.jdevice.which);
|
||||||
|
|
|
@ -340,6 +340,10 @@ keyname_t keynames[] =
|
||||||
{"RTRIGGER", K_GP_RIGHT_TRIGGER},
|
{"RTRIGGER", K_GP_RIGHT_TRIGGER},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Steam Controller */
|
||||||
|
{"SC_LPADDLE", K_AUX12},
|
||||||
|
{"SC_RPADDLE", K_AUX13},
|
||||||
|
|
||||||
{NULL, 0}
|
{NULL, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue