瀏覽代碼

Review some comment

pull/1120/head
Ray 5 年之前
父節點
當前提交
08615d3247
共有 1 個檔案被更改,包括 3 行新增4 行删除
  1. +3
    -4
      src/core.c

+ 3
- 4
src/core.c 查看文件

@ -2523,8 +2523,8 @@ bool IsMouseButtonDown(int button)
#else
if (glfwGetMouseButton(CORE.Window.handle, button)) down = true;
// WARNING: currentButtonState is filled by an event callback and
// reseted every frame (moving value to previousButtonState), consequently,
// WARNING: currentButtonState is filled by an event callback p">(onlyan> called on event!)
// and reseted every frame (moving value to previousButtonState), consequently,
// if button is kept down, it is not properly detected using currentButtonState
// Same issue happens with touch events, they should be stycky an not reseted
//if (CORE.Input.Mouse.currentButtonState[button] == 1) down = true;
@ -4384,8 +4384,7 @@ static int32_t AndroidInputCallback(struct android_app *app, AInputEvent *event)
CORE.Input.Touch.position[0].x = 0;
CORE.Input.Touch.position[0].y = 0;
}
else // TODO:Not sure what else should be handled
return 0;
else return 0; // TODO: Not sure what else should be handled
#if defined(SUPPORT_GESTURES_SYSTEM)
GestureEvent gestureEvent = { 0 };

||||||
x
 
000:0
Loading…
取消
儲存