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:
Eukara 2021-07-21 11:48:31 +00:00
parent 1c038872f3
commit 42b6d60115
2 changed files with 5 additions and 1 deletions

View File

@ -984,7 +984,7 @@ void Sys_SendKeyEvents(void)
// break;
case SDL_JOYBUTTONDOWN:
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;
case SDL_JOYDEVICEADDED:
J_JoystickAdded(event.jdevice.which);

View File

@ -340,6 +340,10 @@ keyname_t keynames[] =
{"RTRIGGER", K_GP_RIGHT_TRIGGER},
#endif
/* Steam Controller */
{"SC_LPADDLE", K_AUX12},
{"SC_RPADDLE", K_AUX13},
{NULL, 0}
};