diff options
| author | raysan5 <[email protected]> | 2020-04-30 20:17:16 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-04-30 20:17:16 +0200 |
| commit | 0981dde9d4d6bdbb123ad31474aa1a44f34606cf (patch) | |
| tree | cdee9cb10602923b9ad76a35ffd2c20c1d002bca /src | |
| parent | 4ca4326bf94cfbeb5c87fa0eb71c4d4a6646c8fe (diff) | |
| download | raylib-0981dde9d4d6bdbb123ad31474aa1a44f34606cf.tar.gz raylib-0981dde9d4d6bdbb123ad31474aa1a44f34606cf.zip | |
Remove strcmp() requirement
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); } |
