summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
authorjussi2024-07-20 15:29:50 +0300
committerjussi2024-07-20 15:29:50 +0300
commitc6eb85b3674c36cfc426486d866a78dfc5452ae0 (patch)
tree2682f880b3254bf1901556da809f5475b2693ccc /src/core.c
parent03e9226b5f6c3fe4d113759b3a023ee92d7b2d4f (diff)
downloadreilua-enhanced-c6eb85b3674c36cfc426486d866a78dfc5452ae0.tar.gz
reilua-enhanced-c6eb85b3674c36cfc426486d866a78dfc5452ae0.tar.bz2
reilua-enhanced-c6eb85b3674c36cfc426486d866a78dfc5452ae0.zip
GetRayBoxCells also returns exit point.
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;
}