input::ois_handler Class Reference

#include <ois_input_impl.hpp>

Inheritance diagram for input::ois_handler:
input::handler_impl

List of all members.

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_handleroperator= (const ois_handler &)
void toggle_mouse_grab () override
 Toggles mouse grab.
void update () override
 Updates this implementation handler.

Detailed Description

Definition at line 17 of file ois_input_impl.hpp.


Constructor & Destructor Documentation

input::ois_handler::ois_handler ( const std::string &  sWindowHandle,
float  fScreenWidth,
float  fScreenHeight,
bool  bMouseGrab = false 
)

Initializes this handler.

Parameters:
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
Note:
For more infos regarding the window handle, see ois documentation.

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  ) 

Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Tue Jan 1 21:58:13 2013 for gui by  doxygen 1.6.1