49 mutable int width, height;
66 return ((buttons & ( 1
L << button )) == 0) ?
false :
true;
98 virtual bool mouseMoved(
const MouseEvent &arg ) = 0;
129 :
Object(vendor,
OISMouse, buffered, devID, creator), mListener(0) {}
Axis X
X Axis component.
Definition: OISMouse.h:52
Base class of all events.
Definition: OISEvents.h:32
#define _OISExport
Definition: OISPrereqs.h:40
MouseListener * getEventCallback() const
Definition: OISMouse.h:122
Definition: OISPrereqs.h:142
Mouse(const std::string &vendor, bool buffered, int devID, InputManager *creator)
Definition: OISMouse.h:128
::std::string string
Definition: gtest-port.h:756
Definition: OISMouse.h:34
To recieve buffered mouse input, derive a class from this, and implement the methods here...
Definition: OISMouse.h:94
Represents the state of the mouse All members are valid for both buffered and non buffered mode...
Definition: OISMouse.h:41
Definition: OISMouse.h:34
Definition: OISMouse.h:33
MouseButtonID
Button ID for mouse devices.
Definition: OISMouse.h:31
virtual ~MouseListener()
Definition: OISMouse.h:97
MouseEvent(Object *obj, const MouseState &ms)
Definition: OISMouse.h:83
Mouse base class.
Definition: OISMouse.h:107
virtual void setEventCallback(MouseListener *mouseListener)
Definition: OISMouse.h:119
Definition: OISMouse.h:34
Definition: InputPrereqs.h:96
virtual ~Mouse()
Definition: OISMouse.h:110
int width
Represents the height/width of your display area.
Definition: OISMouse.h:44
Definition: OISMouse.h:33
The base class of all input types.
Definition: OISObject.h:32
const MouseState & state
The state of the mouse - including buttons and axes.
Definition: OISMouse.h:87
virtual ~MouseEvent()
Definition: OISMouse.h:84
Axis Z
Z Axis Component.
Definition: OISMouse.h:58
bool buttonDown(MouseButtonID button) const
Button down test.
Definition: OISMouse.h:64
Definition: OISMouse.h:34
void clear()
Clear all the values.
Definition: OISMouse.h:70
MouseListener * mListener
Used for buffered/actionmapping callback.
Definition: OISMouse.h:135
Definition: OISMouse.h:34
Axis component.
Definition: OISPrereqs.h:185
Definition: OISMouse.h:33
Specialised for mouse events.
Definition: OISMouse.h:80
Definition: EventHelpers.h:31
void clear()
Used internally by OIS.
Definition: OISPrereqs.h:197
const MouseState & getMouseState() const
Definition: OISMouse.h:125
Axis Y
Y Axis Component.
Definition: OISMouse.h:55
MouseState mState
The state of the mouse.
Definition: OISMouse.h:132
int buttons
represents all buttons - bit position indicates button down
Definition: OISMouse.h:61