diff --git a/src/Window_SDL3.c b/src/Window_SDL3.c index 998d80c8d..50c6c67c5 100644 --- a/src/Window_SDL3.c +++ b/src/Window_SDL3.c @@ -223,13 +223,13 @@ static int MapNativeKey(SDL_Keycode k) { } static void OnKeyEvent(const SDL_Event* e) { - cc_bool pressed = e->key.down == SDL_TRUE; + cc_bool pressed = e->key.down == true; int key = MapNativeKey(e->key.key); if (key) Input_Set(key, pressed); } static void OnMouseEvent(const SDL_Event* e) { - cc_bool pressed = e->button.down == SDL_TRUE; + cc_bool pressed = e->button.down == true; int btn; switch (e->button.button) { case SDL_BUTTON_LEFT: btn = CCMOUSE_L; break; @@ -613,4 +613,4 @@ void GLContext_SetVSync(cc_bool vsync) { } void GLContext_GetApiInfo(cc_string* info) { } #endif -#endif \ No newline at end of file +#endif