Skip to content

Commit

Permalink
RI_KEY_BREAK indicates key is up
Browse files Browse the repository at this point in the history
  • Loading branch information
mausimus authored and slouken committed Oct 20, 2024
1 parent 679dd4b commit a6536a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/windows/SDL_windowsevents.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ static void WIN_HandleRawKeyboardInput(Uint64 timestamp, SDL_VideoData *data, HA
return;
}

bool down = ((rawkeyboard->Flags & RI_KEY_BREAK) != 0);
bool down = !(rawkeyboard->Flags & RI_KEY_BREAK);
SDL_Scancode code;
USHORT rawcode = rawkeyboard->MakeCode;
if (data->pending_E1_key_sequence) {
Expand Down

0 comments on commit a6536a9

Please sign in to comment.