Browse Source

Commented pointer lock on web

Ray 8 năm trước cách đây
mục cha
commit
86f2d4b9f9
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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;
 }