ButtonEventArgs.isPressed

Checks whether a specific button is pressed or not.

  1. bool isPressed(T pressedButton)
    class ButtonEventArgs(T)
    bool
    isPressed
  2. bool isPressed(Range pressedButtons)

Parameters

pressedButton
Type: T

The button to check if pressed or not.

Return Value

Type: bool

true if the button is pressed.

Meta