QuasarEngine
Cross-platform 3D engine and editor
Loading...
Searching...
No Matches
Quasar::GamepadState Struct Reference

State of the buttons and axes of a gamepad. More...

#include <quasar/core/Gamepads.h>

Public Member Functions

bool IsPressed (GamepadButton button) const
 Returns true if the button is held down.
float GetAxis (GamepadAxis axis) const
 Returns the value of the axis.

Public Attributes

std::array< bool, GamepadButtonCount > Buttons {}
 True for each button held down, indexed by GamepadButton.
std::array< float, GamepadAxisCount > Axes {}
 Value of each axis, indexed by GamepadAxis.

Detailed Description

State of the buttons and axes of a gamepad.


The documentation for this struct was generated from the following file: