#include <glfw_input_impl.hpp>
Public Member Functions | |
| glfw_handler (bool bMouseGrab=false) | |
| Initializes this handler. | |
| void | toggle_mouse_grab () override |
| Toggles mouse grab. | |
| std::string | get_key_name (key::code mKey) const override |
| Returns the name of the key as it appears on the keyboard. | |
| void | update () override |
| Updates this implementation handler. | |
Definition at line 9 of file glfw_input_impl.hpp.
| input::glfw_handler::glfw_handler | ( | bool | bMouseGrab = false |
) | [explicit] |
Initializes this handler.
| pWindow | The window from which to receive input |
Definition at line 121 of file glfw_input_impl.cpp.
| std::string input::glfw_handler::get_key_name | ( | key::code | mKey | ) | const [override, virtual] |
Returns the name of the key as it appears on the keyboard.
Implements input::handler_impl.
Definition at line 380 of file glfw_input_impl.cpp.
| void input::glfw_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 138 of file glfw_input_impl.cpp.
| void input::glfw_handler::update | ( | ) | [override, virtual] |
Updates this implementation handler.
Implements input::handler_impl.
Definition at line 433 of file glfw_input_impl.cpp.
1.6.1