#include <MouseHandler.hpp>

Public Member Functions | |
| MouseHandler () | |
| Constructor. | |
| virtual | ~MouseHandler () |
| Destructor. | |
| virtual bool | isButtonDown (MouseButton button)=0 |
| Check if a button is down. | |
| virtual const int | getMousePosition (const unsigned int axis, const bool relative) const =0 |
| Get the position of the mouse along an axis. | |
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::InputCore::MouseHandler::MouseHandler | ( | ) |
Constructor.
| syBR::InputCore::MouseHandler::~MouseHandler | ( | ) | [virtual] |
| virtual bool syBR::InputCore::MouseHandler::isButtonDown | ( | MouseButton | button | ) | [pure virtual] |
Check if a button is down.
| button | Button to be checked |
Implemented in syBR::InputOIS::MouseHandler.
| virtual const int syBR::InputCore::MouseHandler::getMousePosition | ( | const unsigned int | axis, | |
| const bool | relative | |||
| ) | const [pure 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:
|
Implemented in syBR::InputOIS::MouseHandler.
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