Public Member Functions | |
| Mouse (void) | |
| void | update (int button, int state, int x, int y) |
| Point2D | move (int x, int y) |
Public Attributes | |
| int | shiftDown |
| int | ctrlDown |
| int | altDown |
| int | leftDown |
| int | middleDown |
| int | rightDown |
| int | scrollDown |
| int | startX |
| int | startY |
| int | endX |
| int | endY |
|
|
This constructor instantiates the mouse members |
|
||||||||||||
|
This method udpates the state of the mouse when the mouse is moved. The returned value indicates the distance (in screen coordinates) that the mouse has moved |
|
||||||||||||||||||||
|
This method updates the state of the mouse when the state of a mouse button is changed |
|
|
Was the alt button depressed when the mouse state was updated |
|
|
Was the control button depressed when the mouse state was updated |
|
|
The screen coordinates when the mouse was last moved |
|
|
The screen coordinates when the mouse was last moved |
|
|
Was the left mouse button depressed when the mouse state was updated |
|
|
Was the middle mouse button depressed when the mouse state was updated |
|
|
Was the right mouse button depressed when the mouse state was updated |
|
|
Was the scroll wheel depressed when the mouse state was updated |
|
|
Was the shift button depressed when the mouse state was updated |
|
|
The screen coordinates when the mouse state was updated |
|
|
The screen coordinates when the mouse state was updated |
1.4.1