SetOnKeySub


SetOnKeySub onKey()

Sets the on key pressed subroutine. Once set, the specified onKey() subroutine will be automatically called when a key is pressed on the hardware keyboard. This event sub is only triggered by keys and D-pads on a hardware keyboard. The subroutine name onKey() may be changed to your own name.


Sub onKey(keycode, charcode)

' Insert your code here

End Sub

SetOnKeySub Off

Turns off the automatic subroutine call.


Event Triggered Subs







Become a Patron