#include <ois_input_impl.hpp>
Public Member Functions | |
ois_handler (const std::string &sWindowHandle, float fScreenWidth, float fScreenHeight, bool bMouseGrab=false) | |
Initializes this handler. | |
~ois_handler () | |
Destructor. | |
ois_handler (const ois_handler &) | |
ois_handler & | operator= (const ois_handler &) |
void | toggle_mouse_grab () override |
Toggles mouse grab. | |
void | update () override |
Updates this implementation handler. |
Definition at line 17 of file ois_input_impl.hpp.
input::ois_handler::ois_handler | ( | const std::string & | sWindowHandle, | |
float | fScreenWidth, | |||
float | fScreenHeight, | |||
bool | bMouseGrab = false | |||
) |
Initializes this handler.
sWindowHandle | A string containing a formatted window handle | |
fScreenWidth | The width of the window | |
fScreenHeight | The height of the window | |
bMouseGrab | 'true' to take full control of the mouse and hide it |
Definition at line 27 of file ois_input_impl.cpp.
input::ois_handler::~ois_handler | ( | ) |
Destructor.
Definition at line 36 of file ois_input_impl.cpp.
input::ois_handler::ois_handler | ( | const ois_handler & | ) |
ois_handler& input::ois_handler::operator= | ( | const ois_handler & | ) |
void input::ois_handler::toggle_mouse_grab | ( | ) | [override, virtual] |
Toggles mouse grab.
When the mouse is grabbed, it is confined to the borders of the main window. The actual cursor behavior when reaching those borders is of no importance : what matters is that relative mouse movement is always aquired, i.e. the mouse is never blocked. The mouse is not grabbed by default.
Implements input::handler_impl.
Definition at line 98 of file ois_input_impl.cpp.
void input::ois_handler::update | ( | ) | [override, virtual] |
Updates this implementation handler.
Implements input::handler_impl.
Definition at line 106 of file ois_input_impl.cpp.