Assignments Assignments

mouse.h
Go to the documentation of this file.
1#ifndef MOUSE_INCLUDED
2#define MOUSE_INCLUDED
3
4#include "Util/geometry.h"
5
6 namespace Ray
7{
9 class Mouse
10 {
11 public:
13 bool shiftDown;
14
16 bool ctrlDown;
17
19 bool altDown;
20
22 bool leftDown;
23
25 bool middleDown;
26
28 bool rightDown;
29
31 bool scrollDown;
32
34 int startX , startY;
35
37 int endX , endY;
38
40 Mouse( void );
41
43 void update( int button , int state , int x , int y );
44
47 Util::Point2D move( int x , int y );
48 };
49}
50#endif // MOUSE_INCLUDED
Ray::Mouse::update
void update(int button, int state, int x, int y)
Definition mouse.cpp:20
Ray::Mouse::leftDown
bool leftDown
Definition mouse.h:22
Ray::Mouse::middleDown
bool middleDown
Definition mouse.h:25
Ray::Mouse::rightDown
bool rightDown
Definition mouse.h:28
Ray::Mouse::ctrlDown
bool ctrlDown
Definition mouse.h:16
Ray::Mouse::Mouse
Mouse(void)
Definition mouse.cpp:18
Ray::Mouse::startY
int startY
Definition mouse.h:34
Ray::Mouse::startX
int startX
Definition mouse.h:34
Ray::Mouse::altDown
bool altDown
Definition mouse.h:19
Ray::Mouse::shiftDown
bool shiftDown
Definition mouse.h:13
Ray::Mouse::move
Util::Point2D move(int x, int y)
Definition mouse.cpp:45
Ray::Mouse::endY
int endY
Definition mouse.h:37
Ray::Mouse::endX
int endX
Definition mouse.h:37
Ray::Mouse::scrollDown
bool scrollDown
Definition mouse.h:31
geometry.h
Ray
Definition box.h:7
Util::Point2D
Point< 2 > Point2D
Definition geometry.h:523