ソースを参照

Fix IsMouseButtonUp() (#3609)

pull/3615/head
Kenneth M 1年前
committed by GitHub
コミット
8b33d1eeb9
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更2行の追加1行の削除
  1. +2
    -1
      src/platforms/rcore_desktop.c

+ 2
- 1
src/platforms/rcore_desktop.c ファイルの表示

@ -1739,7 +1739,8 @@ static void MouseButtonCallback(GLFWwindow *window, int button, int action, int
// WARNING: GLFW could only return GLFW_PRESS (1) or GLFW_RELEASE (0) for now,
// but future releases may add more actions (i.e. GLFW_REPEAT)
CORE.Input.Mouse.currentButtonState[button] = action;
CORE.Input.Touch.currentTouchState[button] = action;
#if defined(SUPPORT_GESTURES_SYSTEM) && defined(SUPPORT_MOUSE_GESTURES)
// Process mouse events as touches to be able to use mouse-gestures
GestureEvent gestureEvent = { 0 };

読み込み中…
キャンセル
保存