mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
Merge pull request #1267 from forkiesassds/master
Change SDL_TRUE to true for SDL3 backend
This commit is contained in:
commit
d3f4bcdf53
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue