Cogs.Core
|
Public Member Functions | |
void | initialize (Core::ViewContext *viewContext) |
void | update () |
void | initialize (Core::ViewContext *viewContext) |
void | update () |
void | initialize (Core::ViewContext *viewContext) |
void | update () |
void | initialize (Core::ViewContext *viewContext) |
void | update () |
Public Attributes | |
const int | axisMapping [6] |
const float | axisMultiplier [6] |
const int | buttonMapping [16] |
Private Member Functions | |
void | scanForDevices () |
Private Attributes | |
Core::ViewContext * | view = nullptr |
std::array< XID, maxDevices > | deviceID |
double | nextScanTime = 0.0 |
const int | Disconnected = -1 |
const int | NoMapping = 0 |
const int | Connected = 1 |
const double | checkInterval = 1.0 |
std::array< size_t, 4 > | mapping = {} |
std::array< double, 4 > | checkedTime = {} |
Static Private Attributes | |
static constexpr double | scanInterval = 2.0 |
static constexpr int | maxDevices = 4 |
Definition at line 18 of file EmscriptenGamepad.h.
|
inline |
Definition at line 21 of file EmscriptenGamepad.h.
|
private |
Definition at line 28 of file LinuxGamepad.cpp.
|
inline |
Definition at line 66 of file EmscriptenGamepad.h.
const int Cogs::Platform::GamepadHandler::axisMapping[6] |
Definition at line 29 of file EmscriptenGamepad.h.
const float Cogs::Platform::GamepadHandler::axisMultiplier[6] |
Definition at line 38 of file EmscriptenGamepad.h.
const int Cogs::Platform::GamepadHandler::buttonMapping[16] |
Definition at line 47 of file EmscriptenGamepad.h.
|
private |
Definition at line 24 of file WindowsGamepad.h.
|
private |
Definition at line 21 of file WindowsGamepad.h.
|
private |
Definition at line 19 of file WindowsGamepad.h.
|
private |
Definition at line 28 of file LinuxGamepad.h.
|
private |
Definition at line 17 of file WindowsGamepad.h.
|
private |
Definition at line 23 of file WindowsGamepad.h.
|
staticconstexprprivate |
Definition at line 26 of file LinuxGamepad.h.
|
private |
Definition at line 29 of file LinuxGamepad.h.
|
private |
Definition at line 18 of file WindowsGamepad.h.
|
staticconstexprprivate |
Definition at line 25 of file LinuxGamepad.h.
|
private |
Definition at line 96 of file EmscriptenGamepad.h.