OpenButtonEmu v0.1.0

OBE v0.1.0 is deprecated and only supports the OLD Button API format. Please use OBE New

This is not affiliated with or endorsed by WhaleEmu.






Edit script

-- Try running this code: display_clearDisplay() -- Check all four buttons if buttons_A_isheld() then display_printcenterText("Button A is held!", 10) end if buttons_B_isheld() then display_printcenterText("Button B is held!", 20) end if buttons_C_isheld() then display_printcenterText("Button C is held!", 30) end if buttons_D_isheld() then display_printcenterText("Button D is held!", 40) end -- If none are pressed: if (not buttons_A_isheld()) and (not buttons_B_isheld()) and (not buttons_C_isheld()) and (not buttons_D_isheld()) then display_printcenterText("No buttons are held.", 50) end -- Test a delay (now non-blocking): system_delay(2000) display_printcenterText("Waited 2 seconds!", 60)

Execution powered by Fengari

Code Editor powered by Ace Editor