summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorRandom <[email protected]>2020-07-14 12:25:21 -0700
committerGitHub <[email protected]>2020-07-14 21:25:21 +0200
commit7760575d3f26c1a8283e205ff587c78e5c406632 (patch)
treef4a3721974e4d7f09a0b78653f73b36ca60ff03b /src/core.c
parent6fb5207694e6c49e1af8db30baa2e2747f42c7e4 (diff)
downloadraylib-7760575d3f26c1a8283e205ff587c78e5c406632.tar.gz
raylib-7760575d3f26c1a8283e205ff587c78e5c406632.zip
fix emcc warning (-Wparentheses-equality) (#1310)
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core.c b/src/core.c
index 8e1e44cf..17b4e8f4 100644
--- a/src/core.c
+++ b/src/core.c
@@ -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);