游戏手柄输入状态快照
更多...
#include <gamepad_input_state.h>
|
| uint32_t | buttons {0} |
| |
| uint8_t | axes [kAxisCount] {kAxisCenter, kAxisCenter, kAxisCenter, kAxisCenter} |
| |
◆ Clear()
| void gamepad::input::State::Clear |
( |
Button | button | ) |
|
|
inlinenoexcept |
◆ FromBytes()
| static State gamepad::input::State::FromBytes |
( |
const void * | data | ) |
|
|
inlinestaticnoexcept |
◆ operator[]() [1/3]
| const uint8_t & gamepad::input::State::operator[] |
( |
Axis | axis | ) |
const |
|
inlinenoexcept |
◆ operator[]() [2/3]
| uint8_t & gamepad::input::State::operator[] |
( |
Axis | axis | ) |
|
|
inlinenoexcept |
◆ operator[]() [3/3]
| bool gamepad::input::State::operator[] |
( |
Button | button | ) |
const |
|
inlinenoexcept |
◆ Reset()
| void gamepad::input::State::Reset |
( |
| ) |
|
|
inlinenoexcept |
◆ Set()
| void gamepad::input::State::Set |
( |
Button | button | ) |
|
|
inlinenoexcept |
◆ axes
| uint8_t gamepad::input::State::axes[kAxisCount] {kAxisCenter, kAxisCenter, kAxisCenter, kAxisCenter} |
◆ buttons
| uint32_t gamepad::input::State::buttons {0} |
该结构体的文档由以下文件生成: