Returns the the first joystick button that is being pressed for target joystickId
. Useful for waiting until the user chooses any key he wants to use.
If no button is being pressed, this method returns JK_NONE
.
Sample:
void onSceneUpdate() { ETHInput@ input = GetInputHandle(); J_KEY jk = input.GetFirstButtonDown(0); if (jk != JK_NONE) { if (jk == JK_01) print("User pressed button #1"); } }