summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index ed7641b..e93ca63 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2532,7 +2532,9 @@ Check if a mouse button is NOT being pressed
int lcoreIsMouseButtonUp( lua_State* L ) {
int button = luaL_checkinteger( L, 1 );
- lua_pushboolean( L, IsMouseButtonUp( button ) );
+ /* IsMouseButtonUp is broken. Review when fixed in raylib. */
+ lua_pushboolean( L, !IsMouseButtonDown( button ) );
+ // lua_pushboolean( L, IsMouseButtonUp( button ) );
return 1;
}