onPress

abstract fun onPress(primaryCode: Int)

Called when the user presses a key. This is sent before the onKey is called. For keys that repeat, this is only called once.

Parameters

primaryCode

the unicode of the key being pressed. If the touch is not on a valid key, the value will be zero.