mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-07 15:10:49 +00:00
fix emscripten builds
This commit is contained in:
parent
9f25821ffd
commit
ab8bd0ef86
1 changed files with 4 additions and 4 deletions
|
|
@ -794,15 +794,15 @@ static EM_BOOL Emscripten_HandleTouch(int eventType, const EmscriptenTouchEvent
|
|||
return preventDefault;
|
||||
}
|
||||
|
||||
static bool IsFunctionKey(SDL_Scancode scancode)
|
||||
static SDL_bool IsFunctionKey(SDL_Scancode scancode)
|
||||
{
|
||||
if (scancode >= SDL_SCANCODE_F1 && scancode <= SDL_SCANCODE_F12) {
|
||||
return true;
|
||||
return SDL_TRUE;
|
||||
}
|
||||
if (scancode >= SDL_SCANCODE_F13 && scancode <= SDL_SCANCODE_F24) {
|
||||
return true;
|
||||
return SDL_TRUE;
|
||||
}
|
||||
return false;
|
||||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
/* This is a great tool to see web keyboard events live:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue