Check if a gamepad button is NOT being pressed
raylib.InitWindow 800, 600, "Gamepad Button Up Demo" while not raylib.WindowShouldClose raylib.BeginDrawing raylib.ClearBackground color.white if raylib.IsGamepadButtonUp(0, raylib.GAMEPAD_BUTTON_LEFT_FACE_DOWN) then raylib.DrawText "A button is up (not held)", 10, 10, 20, color.gray end if raylib.EndDrawing end while raylib.CloseWindow
There was an error while loading. Please reload this page.