From c6eb85b3674c36cfc426486d866a78dfc5452ae0 Mon Sep 17 00:00:00 2001 From: jussi Date: Sat, 20 Jul 2024 15:29:50 +0300 Subject: GetRayBoxCells also returns exit point. --- src/core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core.c') 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; } -- cgit v1.2.3