27#include "GraphicsApi.h"
30#ifndef DOXYGEN_SHOULD_SKIP_THIS
105 #ifdef DOXYGEN_SHOULD_SKIP_THIS
122 #ifdef DOXYGEN_SHOULD_SKIP_THIS
260 std::vector<GamepadId> m_ids;
263#ifndef DOXYGEN_SHOULD_SKIP_THIS
Some gamepad related functions.
Definition: Gamepad.h:144
static bool isAttached(GamepadId id)
Check if a gamepad is attached.
static GamepadId open(GamepadHwId hwid)
Open a gamepad.
static const char * getButtonName(GamepadButton button)
Get the button name.
static void close(GamepadId id)
Close a gamepad.
static const char * getName(GamepadId id)
Get the name of the gamepad.
static const char * getAxisName(GamepadAxis axis)
Get the axis name.
static void initialize()
Initialize the already connected gamepads.
Gamepad()=delete
Deleted constructor.
A tracker for the connection/disconnection of gamepads.
Definition: Gamepad.h:245
std::size_t getConnectedGamepadCount() const
void processEvent(const Event &event)
Process an event.
GamepadTracker()
Constructor.
GamepadId
A gamepad identifier.
Definition: Gamepad.h:123
GamepadAxis
The gamepad axis.
Definition: Gamepad.h:71
constexpr GamepadId AnyGamepad
A special identifier for all gamepads.
Definition: Gamepad.h:138
GamepadButton
The gamepad buttons.
Definition: Gamepad.h:43
GamepadHwId
A gamepad hardware identifier.
Definition: Gamepad.h:106
GamepadAxisDirection
A gamepad axis direction.
Definition: Gamepad.h:89
@ TriggerLeft
The left trigger axis.
@ TriggerRight
The right trigger axis.
@ LeftY
The left stick Y axis.
@ LeftX
The left stick X axis.
@ RightX
The right stick X axis.
@ RightY
The right stick Y axis.
@ DPadLeft
The directional pad left button.
@ RightBumper
The right bumper button.
@ DPadUp
The directional pad up button.
@ LeftStick
The left stick button.
@ DPadDown
The directional pad down button.
@ RightStick
The right stick button.
@ LeftBumper
The left bumper button.
@ DPadRight
The directional pad right button.
@ Positive
Positive direction of the axis.
@ Negative
Negative direction of the axis.
The namespace for gf classes.
Defines a system event and its parameters.
Definition: Event.h:224