瀏覽代碼

Commented pointer lock on web

pull/282/head
Ray 8 年之前
父節點
當前提交
86f2d4b9f9
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      src/core.c

+ 3
- 0
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;
}

Loading…
取消
儲存