mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 09:35:23 -04:00
Merge pull request #1267 from forkiesassds/master
Change SDL_TRUE to true for SDL3 backend
This commit is contained in:
commit
d3f4bcdf53
@ -223,13 +223,13 @@ static int MapNativeKey(SDL_Keycode k) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void OnKeyEvent(const SDL_Event* e) {
|
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);
|
int key = MapNativeKey(e->key.key);
|
||||||
if (key) Input_Set(key, pressed);
|
if (key) Input_Set(key, pressed);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void OnMouseEvent(const SDL_Event* e) {
|
static void OnMouseEvent(const SDL_Event* e) {
|
||||||
cc_bool pressed = e->button.down == SDL_TRUE;
|
cc_bool pressed = e->button.down == true;
|
||||||
int btn;
|
int btn;
|
||||||
switch (e->button.button) {
|
switch (e->button.button) {
|
||||||
case SDL_BUTTON_LEFT: btn = CCMOUSE_L; break;
|
case SDL_BUTTON_LEFT: btn = CCMOUSE_L; break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user