GetRayBoxCells also returns exit point.

This commit is contained in:
jussi
2024-07-20 15:29:50 +03:00
parent 03e9226b5f
commit c6eb85b367
5 changed files with 35 additions and 17 deletions

View File

@@ -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;
}