mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Revert "Ignore OS key repeats for game controls"
This reverts commit 2131973ecce45690bb82ddc80a2dee2107f8362f.
This commit is contained in:
parent
04f371bbb4
commit
5349b45a09
3 changed files with 1 additions and 7 deletions
|
|
@ -38,7 +38,7 @@ struct event_t
|
||||||
{
|
{
|
||||||
evtype_t type;
|
evtype_t type;
|
||||||
INT32 data1; // keys / mouse/joystick buttons
|
INT32 data1; // keys / mouse/joystick buttons
|
||||||
INT32 data2; // mouse/joystick x move; key repeat
|
INT32 data2; // mouse/joystick x move
|
||||||
INT32 data3; // mouse/joystick y move
|
INT32 data3; // mouse/joystick y move
|
||||||
INT32 device; // which device ID it belongs to (controller ID)
|
INT32 device; // which device ID it belongs to (controller ID)
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -456,11 +456,6 @@ void G_MapEventsToControls(event_t *ev)
|
||||||
case ev_keydown:
|
case ev_keydown:
|
||||||
if (ev->data1 < NUMINPUTS)
|
if (ev->data1 < NUMINPUTS)
|
||||||
{
|
{
|
||||||
if (ev->data2) // OS repeat? We handle that ourselves
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeviceGameKeyDownArray[ev->data1] = JOYAXISRANGE;
|
DeviceGameKeyDownArray[ev->data1] = JOYAXISRANGE;
|
||||||
|
|
||||||
if (AutomaticControllerReassignmentIsAllowed(ev->device))
|
if (AutomaticControllerReassignmentIsAllowed(ev->device))
|
||||||
|
|
|
||||||
|
|
@ -571,7 +571,6 @@ static void Impl_HandleKeyboardEvent(SDL_KeyboardEvent evt, Uint32 type)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
event.data1 = Impl_SDL_Scancode_To_Keycode(evt.keysym.scancode);
|
event.data1 = Impl_SDL_Scancode_To_Keycode(evt.keysym.scancode);
|
||||||
event.data2 = evt.repeat;
|
|
||||||
if (event.data1) D_PostEvent(&event);
|
if (event.data1) D_PostEvent(&event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue