FluidBackend.isPressed

Check if the given gamepad button has been pressed/released or, if it's held down or not (up) on any of the connected gamepads.

  1. bool isPressed(MouseButton )
  2. bool isPressed(KeyboardKey )
  3. int isPressed(GamepadButton button)
    interface FluidBackend
    const
    int
    isPressed

Return Value

Type: int

0 if the event isn't taking place on any controller, or number of the controller.

Meta