Input

Overview

Functions

GetMoveActions()

ButtonActionarrow-up-right[] GetMoveActions()

Helper function to get all the values of the ButtonAction enum that correspond to movement.

GetPressedModifier()

Keyboardarrow-up-right? GetPressedModifier()

Helper function to get the modifier key that is being pressed in the keyboard A modifier key is defined as shift, control, alt, or Windows.

GetShootActions()

ButtonActionarrow-up-right[] GetShootActions()

Helper function to get all the values of the ButtonAction enum that correspond to shooting.

IsActionPressedOnAnyInput()

boolean IsActionPressedOnAnyInput(ButtonActionarrow-up-right action)

Helper function to check if a given Button Action is being pressed in any controller.

IsActionTriggeredOnAnyInput()

boolean IsActionTriggeredOnAnyInput(ButtonActionarrow-up-right action)

Helper function to check if a given Button Action is being triggered in any controller.

IsKeyboardPressed()

boolean IsKeyboardPressed(Keyboardarrow-up-right ...)

Helper function to see if any of the given keys are being pressed in the keyboard.

IsMoveAction()

boolean IsMoveAction(ButtonActionarrow-up-right buttonAction)

Helper function to check if a given Button Action corresponds to movement.

IsMoveActionPressedOnAnyInput()

boolean IsMoveActionPressedOnAnyInput()

Helper function to check if a move action is being pressed in any controller.

IsMoveActionTriggeredOnAnyInput()

boolean IsMoveActionTriggeredOnAnyInput()

Helper function to check if a move action is being triggered in any controller.

IsShootAction()

boolean IsShootAction(ButtonActionarrow-up-right buttonAction)

Helper function to check if a given Button Action corresponds to shooting.

IsShootActionPressedOnAnyInput()

boolean IsShootActionPressedOnAnyInput()

Helper function to check if a shoot action is being pressed in any controller.

IsShootActionTriggeredOnAnyInput()

boolean IsShootActionTriggeredOnAnyInput()

Helper function to check if a shoot action is being triggered in any controller.

KeyboardToString()

string KeyboardToString(Keyboardarrow-up-right key, boolean shiftPressed)

Helper function to get the string that would be typed if someone pressed the corresponding key.

Last updated