#include <MouseHandler.hpp>

Public Member Functions | |
| MouseHandler (OIS::Mouse *pMouse) | |
| Constructor. | |
| virtual | ~MouseHandler () |
| Destructor. | |
| bool | isButtonDown (InputCore::MouseButton button) |
| Check if a button is down. | |
| const int | getMousePosition (const unsigned int axis, const bool relative) const |
| Get the position of the mouse along an axis. | |
Private Attributes | |
| OIS::Mouse * | m_pMouse |
| OIS mouse. | |
Static Private Attributes | |
| static const OIS::MouseButtonID | sm_mouseButtons [] |
| Relationship between the InputCore mouse buttons and OIS mouse buttons. | |
Friends | |
| class | InputSystem |
This is the object which gives access to the mouse. This is a pure abstract class which needs a concrete implementation (using OIS, DirectInput or any other input library).
| syBR::InputOIS::MouseHandler::MouseHandler | ( | OIS::Mouse * | pMouse | ) |
Constructor.
| syBR::InputOIS::MouseHandler::~MouseHandler | ( | ) | [virtual] |
| bool syBR::InputOIS::MouseHandler::isButtonDown | ( | InputCore::MouseButton | button | ) | [virtual] |
Check if a button is down.
| button | Button to be checked |
Implements syBR::InputCore::MouseHandler.
| const int syBR::InputOIS::MouseHandler::getMousePosition | ( | const unsigned int | axis, | |
| const bool | relative | |||
| ) | const [virtual] |
Get the position of the mouse along an axis.
| axis | 0 for x-axis, 1 for y-axis and 2 for z-axis (wheel) | |
| relative | One of these:
|
Implements syBR::InputCore::MouseHandler.
friend class InputSystem [friend] |
const OIS::MouseButtonID syBR::InputOIS::MouseHandler::sm_mouseButtons [static, private] |
OIS::Mouse* syBR::InputOIS::MouseHandler::m_pMouse [private] |
OIS mouse.
Copyright © 2008 by Sebastien Frippiat

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.
Last modified Tue Dec 30 17:57:34 2008