Custom controls management
This commit is contained in:
parent
9016c7282d
commit
b77413c681
1 changed files with 2 additions and 2 deletions
|
@ -856,7 +856,7 @@ int handle_msgpump()
|
|||
default:
|
||||
if (currprefs.customControls)
|
||||
{
|
||||
keycode = customControlMap[rEvent.key.keysym.sym];
|
||||
keycode = SDL_GetKeyFromName(customControlMap[rEvent.key.keysym.sym]);
|
||||
if (keycode < 0)
|
||||
{
|
||||
// Simulate mouse or joystick
|
||||
|
@ -878,7 +878,7 @@ int handle_msgpump()
|
|||
case SDL_KEYUP:
|
||||
if (currprefs.customControls)
|
||||
{
|
||||
keycode = customControlMap[rEvent.key.keysym.sym];
|
||||
keycode = SDL_GetKeyFromName(customControlMap[rEvent.key.keysym.sym]);
|
||||
if (keycode < 0)
|
||||
{
|
||||
// Simulate mouse or joystick
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue