Commented pointer lock on web
This commit is contained in:
parent
66320582a3
commit
86f2d4b9f9
1 changed files with 3 additions and 0 deletions
|
@ -2719,6 +2719,8 @@ static EM_BOOL EmscriptenKeyboardCallback(int eventType, const EmscriptenKeyboar
|
||||||
// Register mouse input events
|
// Register mouse input events
|
||||||
static EM_BOOL EmscriptenMouseCallback(int eventType, const EmscriptenMouseEvent *mouseEvent, void *userData)
|
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;
|
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!");
|
//if (plce.isActive) TraceLog(WARNING, "Pointer lock exit did not work!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue