| 125 | bool GamePad::buttonUp(int button) { return !bButtons_state[input_state][button]; } |
| 126 | |
| 127 | bool GamePad::hatPressed(GP_HatDirection direction) |
| 128 | { |
| 129 | return (bHat_state[input_state][direction]) && |
| 130 | !(bHat_state[input_state ^ 1][direction]); |
| 131 | } |
| 132 | |
| 133 | bool GamePad::hatReleased(GP_HatDirection direction) |
| 134 | { |