OIS::MacMouse Class Reference

#include <MacMouse.h>

Inheritance diagram for OIS::MacMouse:
[legend]
Collaboration diagram for OIS::MacMouse:
[legend]

List of all members.

Public Member Functions

 MacMouse (InputManager *creator, bool buffered)
virtual ~MacMouse ()
virtual void setBuffered (bool buffered)
virtual void capture ()
virtual InterfacequeryInterface (Interface::IType type)
virtual void _initialize ()
void _mouseButtonCallback (EventRef theEvent)
void _mouseMoveCallback (EventRef theEvent)
void _mouseScrollCallback (EventRef theEvent)

Protected Member Functions

 MacMouse ()

Protected Attributes

EventHandlerUPP mouseButtonUPP
EventHandlerUPP mouseMoveUPP
EventHandlerUPP mouseScrollUPP
EventHandlerRef mouseButtonEventRef
EventHandlerRef mouseMoveEventRef
EventHandlerRef mouseScrollEventRef
bool mRegainFocus


Detailed Description

Definition at line 12 of file MacMouse.h.


Constructor & Destructor Documentation

MacMouse::MacMouse ( InputManager creator,
bool  buffered 
)

Definition at line 15 of file MacMouse.cpp.

References OIS::Mouse::listener, OIS::Object::mBuffered, OIS::Object::mCreator, mouseButtonEventRef, mouseButtonUPP, MouseButtonWrapper(), mouseMoveEventRef, mouseMoveUPP, MouseMoveWrapper(), mouseScrollEventRef, mouseScrollUPP, MouseScrollWrapper(), OIS::Object::mType, and OISMouse.

MacMouse::~MacMouse (  )  [virtual]

Definition at line 31 of file MacMouse.cpp.

References mouseButtonEventRef, mouseButtonUPP, mouseMoveEventRef, mouseMoveUPP, mouseScrollEventRef, and mouseScrollUPP.

OIS::MacMouse::MacMouse (  )  [inline, protected]

Definition at line 36 of file MacMouse.h.


Member Function Documentation

void MacMouse::setBuffered ( bool  buffered  )  [virtual]

Remarks:
Sets buffered mode

Implements OIS::Object.

Definition at line 93 of file MacMouse.cpp.

References OIS::Object::mBuffered.

void MacMouse::capture (  )  [virtual]

Remarks:
Used for updating call once per frame before checking state or to update events

Implements OIS::Object.

Definition at line 98 of file MacMouse.cpp.

References OIS::Object::mBuffered.

virtual Interface* OIS::MacMouse::queryInterface ( Interface::IType  type  )  [inline, virtual]

Remarks:
If available, get an interface to write to some devices. Examples include, turning on and off LEDs, ForceFeedback, etc
Parameters:
type The type of interface you are looking for

Implements OIS::Object.

Definition at line 25 of file MacMouse.h.

void MacMouse::_initialize (  )  [virtual]

Remarks:
Internal... Do not call this directly.

Implements OIS::Object.

Definition at line 42 of file MacMouse.cpp.

References OIS::MouseState::clear(), OIS::Object::mCreator, mouseButtonEventRef, mouseButtonUPP, mouseMoveEventRef, mouseMoveUPP, mouseScrollEventRef, mouseScrollUPP, mRegainFocus, OIS::Mouse::mState, and OIS_EXCEPT.

void MacMouse::_mouseButtonCallback ( EventRef  theEvent  ) 

Definition at line 106 of file MacMouse.cpp.

void MacMouse::_mouseMoveCallback ( EventRef  theEvent  ) 

Definition at line 111 of file MacMouse.cpp.

void MacMouse::_mouseScrollCallback ( EventRef  theEvent  ) 

Definition at line 116 of file MacMouse.cpp.


Member Data Documentation

EventHandlerUPP OIS::MacMouse::mouseButtonUPP [protected]

Definition at line 39 of file MacMouse.h.

Referenced by _initialize(), MacMouse(), and ~MacMouse().

EventHandlerUPP OIS::MacMouse::mouseMoveUPP [protected]

Definition at line 40 of file MacMouse.h.

Referenced by _initialize(), MacMouse(), and ~MacMouse().

EventHandlerUPP OIS::MacMouse::mouseScrollUPP [protected]

Definition at line 41 of file MacMouse.h.

Referenced by _initialize(), MacMouse(), and ~MacMouse().

EventHandlerRef OIS::MacMouse::mouseButtonEventRef [protected]

Definition at line 44 of file MacMouse.h.

Referenced by _initialize(), MacMouse(), and ~MacMouse().

EventHandlerRef OIS::MacMouse::mouseMoveEventRef [protected]

Definition at line 45 of file MacMouse.h.

Referenced by _initialize(), MacMouse(), and ~MacMouse().

EventHandlerRef OIS::MacMouse::mouseScrollEventRef [protected]

Definition at line 46 of file MacMouse.h.

Referenced by _initialize(), MacMouse(), and ~MacMouse().

bool OIS::MacMouse::mRegainFocus [protected]

Definition at line 48 of file MacMouse.h.

Referenced by _initialize().


The documentation for this class was generated from the following files:
Generated on Sat Dec 1 20:13:54 2007 for OIS by  doxygen 1.5.4