| 33 | }; |
| 34 | |
| 35 | class Mouse |
| 36 | { |
| 37 | public: |
| 38 | bool bButtons[NUM_M_BUTTONS]; |
| 39 | bool bButtons_state[2][NUM_M_BUTTONS]; |
| 40 | long lX; |
| 41 | long lX_state[2]; |
| 42 | long lY; |
| 43 | long lY_state[2]; |
| 44 | int input_state; |
| 45 | |
| 46 | Mouse(); |
| 47 | ~Mouse(); |
| 48 | |
| 49 | void update(); |
| 50 | |
| 51 | long ldX(); |
| 52 | long ldY(); |
| 53 | |
| 54 | bool buttonPressed(); |
| 55 | bool buttonReleased(); |
| 56 | bool buttonDown(); |
| 57 | bool buttonUp(); |
| 58 | }; |
| 59 | |
| 60 | typedef enum GP_HatDirection |
| 61 | { |
nothing calls this directly
no outgoing calls
no test coverage detected