Gamedev Framework (gf)
0.3.0
A C++11 framework for 2D games
|
Some gamepad related functions. More...
#include <gf/Gamepad.h>
Public Member Functions | |
Gamepad ()=delete | |
Deleted constructor. More... | |
Static Public Member Functions | |
static const char * | getAxisName (GamepadAxis axis) |
Get the axis name. More... | |
static const char * | getButtonName (GamepadButton button) |
Get the button name. More... | |
static void | initialize () |
Initialize the already connected gamepads. More... | |
Gamepad management | |
static GamepadId | open (GamepadHwId hwid) |
Open a gamepad. More... | |
static bool | isAttached (GamepadId id) |
Check if a gamepad is attached. More... | |
static void | close (GamepadId id) |
Close a gamepad. More... | |
static const char * | getName (GamepadId id) |
Get the name of the gamepad. More... | |
Some gamepad related functions.
|
delete |
Deleted constructor.
|
static |
Close a gamepad.
Generally, this function is called after a GamepadDisconnected event.
Example:
id | The gamepad id |
|
static |
Get the axis name.
axis | A gamepad axis |
|
static |
Get the button name.
button | A gamepad button |
|
static |
Get the name of the gamepad.
id | The gamepad id |
|
static |
Initialize the already connected gamepads.
|
static |
Check if a gamepad is attached.
id | The gamepad id |
|
static |
Open a gamepad.
Generally, this function is called after a GamepadConnected event.
Example:
hwid | The hardware identifier |