| 78 | bool Mouse::buttonUp() { return !bButtons_state[input_state][0]; } |
| 79 | |
| 80 | GamePad::GamePad() |
| 81 | { |
| 82 | numButtons = NUM_BUTTONS; |
| 83 | std::memset(bButtons, 0, sizeof(bButtons)); |
| 84 | std::memset(bButtons_state, 0, sizeof(bButtons_state)); |
| 85 | std::memset(bHat, 0, sizeof(bHat)); |
| 86 | std::memset(bHat_state, 0, sizeof(bHat_state)); |
| 87 | lAxisX = 0; |
| 88 | lAxisY = 0; |
| 89 | lAxisZ = 0; |
| 90 | lAxisRz = 0; |
| 91 | lAxisX_state[0] = lAxisX_state[1] = 0; |
| 92 | lAxisY_state[0] = lAxisY_state[1] = 0; |
| 93 | lAxisZ_state[0] = lAxisZ_state[1] = 0; |
| 94 | lAxisRz_state[0] = lAxisRz_state[1] = 0; |
| 95 | input_state = 0; |
| 96 | } |
| 97 | |
| 98 | GamePad::~GamePad() {} |
| 99 |
nothing calls this directly
no outgoing calls
no test coverage detected