Skip to content

Commit 23e75b5

Browse files
authored
Disables keyboard key repeats (#153)
1 parent b7987c1 commit 23e75b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/input.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ input_handle_event(Input *input, SDL_Event *event, InputDeviceType *device_type)
199199
{
200200
InputDeviceType current_device_type = DeviceType_Unknown;
201201

202-
if (event->type == SDL_EVENT_KEY_DOWN) {
202+
if (event->type == SDL_EVENT_KEY_DOWN && !event->key.repeat) {
203203
Uint32 key;
204204
if ((key = get_event_modkey(event))) {
205205
input->modKeyState |= key;

0 commit comments

Comments
 (0)