summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2017-04-28 00:29:50 +0200
committerRay <[email protected]>2017-04-28 00:29:50 +0200
commit86f2d4b9f9df7514e3f15d8f2a5e92db6ac3c0ba (patch)
tree070e21896a2c88a58c42bad9a2291baaa864858e /src
parent66320582a36d6c0b5ebd063bfbe4c04cb4424b8f (diff)
downloadraylib-86f2d4b9f9df7514e3f15d8f2a5e92db6ac3c0ba.tar.gz
raylib-86f2d4b9f9df7514e3f15d8f2a5e92db6ac3c0ba.zip
Commented pointer lock on web
Diffstat (limited to 'src')
-rw-r--r--src/core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index ee069d97..1bad2369 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2719,6 +2719,8 @@ static EM_BOOL EmscriptenKeyboardCallback(int eventType, const EmscriptenKeyboar
// Register mouse input events
static EM_BOOL EmscriptenMouseCallback(int eventType, const EmscriptenMouseEvent *mouseEvent, void *userData)
{
+ /*
+ // Lock mouse pointer when click on screen
if (eventType == EMSCRIPTEN_EVENT_CLICK)
{
EmscriptenPointerlockChangeEvent plce;
@@ -2732,6 +2734,7 @@ static EM_BOOL EmscriptenMouseCallback(int eventType, const EmscriptenMouseEvent
//if (plce.isActive) TraceLog(WARNING, "Pointer lock exit did not work!");
}
}
+ */
return 0;
}