|
Assignments
Assignments
|
#include <mouse.h>
Public Member Functions | |
| Mouse (void) | |
| void | update (int button, int state, int x, int y) |
| Util::Point2D | move (int x, int y) |
Public Attributes | |
| bool | shiftDown |
| bool | ctrlDown |
| bool | altDown |
| bool | leftDown |
| bool | middleDown |
| bool | rightDown |
| bool | scrollDown |
| int | startX |
| int | startY |
| int | endX |
| int | endY |
This class represents the current state of the mouse
| Mouse::Mouse | ( | void | ) |
This constructor instantiates the mouse members
| Point2D Mouse::move | ( | int | x, |
| int | y ) |
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
| void Mouse::update | ( | int | button, |
| int | state, | ||
| int | x, | ||
| int | y ) |
This method updates the state of the mouse when the state of a mouse button is changed
| bool Ray::Mouse::altDown |
Was the alt button depressed when the mouse state was updated
| bool Ray::Mouse::ctrlDown |
Was the control button depressed when the mouse state was updated
| int Ray::Mouse::endX |
The screen coordinates when the mouse was last moved
| int Ray::Mouse::endY |
| bool Ray::Mouse::leftDown |
Was the left mouse button depressed when the mouse state was updated
| bool Ray::Mouse::middleDown |
Was the middle mouse button depressed when the mouse state was updated
| bool Ray::Mouse::rightDown |
Was the right mouse button depressed when the mouse state was updated
| bool Ray::Mouse::scrollDown |
Was the scroll wheel depressed when the mouse state was updated
| bool Ray::Mouse::shiftDown |
Was the shift button depressed when the mouse state was updated
| int Ray::Mouse::startX |
The screen coordinates when the mouse state was updated
| int Ray::Mouse::startY |