RI_KEY_BREAK indicates key is up

This commit is contained in:
mausimus
2024-10-19 10:50:58 +09:00
committed by Sam Lantinga
parent 679dd4b181
commit a6536a9298

View File

@@ -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) {