summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-04-30 20:17:16 +0200
committerraysan5 <[email protected]>2020-04-30 20:17:16 +0200
commit0981dde9d4d6bdbb123ad31474aa1a44f34606cf (patch)
treecdee9cb10602923b9ad76a35ffd2c20c1d002bca /src/core.c
parent4ca4326bf94cfbeb5c87fa0eb71c4d4a6646c8fe (diff)
downloadraylib-0981dde9d4d6bdbb123ad31474aa1a44f34606cf.tar.gz
raylib-0981dde9d4d6bdbb123ad31474aa1a44f34606cf.zip
Remove strcmp() requirement
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index d46c085e..98635527 100644
--- a/src/core.c
+++ b/src/core.c
@@ -4321,7 +4321,7 @@ static EM_BOOL EmscriptenFullscreenChangeCallback(int eventType, const Emscripte
// Register keyboard input events
static EM_BOOL EmscriptenKeyboardCallback(int eventType, const EmscriptenKeyboardEvent *keyEvent, void *userData)
{
- if ((eventType == EMSCRIPTEN_EVENT_KEYPRESS) && (strcmp(keyEvent->code, "Escape") == 0))
+ if ((eventType == EMSCRIPTEN_EVENT_KEYPRESS) && (keyEvent->key == 27)) // ESCAPE key
{
emscripten_exit_pointerlock();
}