diff options
| author | Random <[email protected]> | 2020-07-14 12:25:21 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-07-14 21:25:21 +0200 |
| commit | 7760575d3f26c1a8283e205ff587c78e5c406632 (patch) | |
| tree | f4a3721974e4d7f09a0b78653f73b36ca60ff03b /src/core.c | |
| parent | 6fb5207694e6c49e1af8db30baa2e2747f42c7e4 (diff) | |
| download | raylib-7760575d3f26c1a8283e205ff587c78e5c406632.tar.gz raylib-7760575d3f26c1a8283e205ff587c78e5c406632.zip | |
fix emcc warning (-Wparentheses-equality) (#1310)
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4218,15 +4218,15 @@ static EM_BOOL EmscriptenKeyboardCallback(int eventType, const EmscriptenKeyboar static EM_BOOL EmscriptenMouseCallback(int eventType, const EmscriptenMouseEvent *mouseEvent, void *userData) { // Lock mouse pointer when click on screen - if ((eventType == EMSCRIPTEN_EVENT_CLICK)) + if (eventType == EMSCRIPTEN_EVENT_CLICK) { EmscriptenPointerlockChangeEvent plce; emscripten_get_pointerlock_status(&plce); - + int result = emscripten_request_pointerlock("#canvas", 1); // TODO: It does not work! - + // result -> EMSCRIPTEN_RESULT_DEFERRED - // The requested operation cannot be completed now for web security reasons, + // The requested operation cannot be completed now for web security reasons, // and has been deferred for completion in the next event handler. --> but it never happens! //if (!plce.isActive) emscripten_request_pointerlock(0, 1); |
