diff options
| author | Michael <132351311+perogycook@users.noreply.github.com> | 2023-12-16 16:50:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-16 16:50:22 -0700 |
| commit | a4606e4da8cb3c238a07b1a33a24941a9d80b8a3 (patch) | |
| tree | cad0ae908d70c2088a531af6469ded3197167440 | |
| parent | 364b64718faea2ffd6e26194990bf8e5a8b9ff44 (diff) | |
IsMouseButtonUp hack for now
| -rw-r--r-- | vendor/raylib/raylib.odin | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/raylib/raylib.odin b/vendor/raylib/raylib.odin index b4b7e1cd4..d3632f002 100644 --- a/vendor/raylib/raylib.odin +++ b/vendor/raylib/raylib.odin @@ -1189,7 +1189,10 @@ foreign lib { IsMouseButtonPressed :: proc(button: MouseButton) -> bool --- // Detect if a mouse button has been pressed once IsMouseButtonDown :: proc(button: MouseButton) -> bool --- // Detect if a mouse button is being pressed IsMouseButtonReleased :: proc(button: MouseButton) -> bool --- // Detect if a mouse button has been released once - IsMouseButtonUp :: proc(button: MouseButton) -> bool --- // Detect if a mouse button is NOT being pressed + // IsMouseButtonUp :: proc(button: MouseButton) -> bool --- Detect if a mouse button is NOT being pressed + IsMouseButtonUp :: proc(button: MouseButton) -> bool { // TODO: remove this when Raylib fixes this bug + return !IsMouseButtonDown(button) + } GetMouseX :: proc() -> c.int --- // Returns mouse position X GetMouseY :: proc() -> c.int --- // Returns mouse position Y GetMousePosition :: proc() -> Vector2 --- // Returns mouse position XY |