The default event handler interface for a nom::UIContext.
More...
#include <UIContextEventHandler.hpp>
|
|
virtual Rocket::Core::Input::KeyIdentifier | translate_key (const Event &ev) |
|
virtual int | translate_mouse_button (const Event &ev) |
| virtual int | translate_mouse_wheel (const Event &ev) |
|
virtual int | translate_key_modifiers (const Event &ev) |
The default event handler interface for a nom::UIContext.
Definition at line 44 of file UIContextEventHandler.hpp.
◆ raw_ptr
| typedef self_type* nom::UIContextEventHandler::raw_ptr |
◆ self_type
◆ UIContextEventHandler()
| nom::UIContextEventHandler::UIContextEventHandler |
( |
UIContext * | ctx | ) |
|
Default constructor.
\params ctx An object pointer to the context utilizing this instance.
◆ process_event()
| virtual void nom::UIContextEventHandler::process_event |
( |
const nom::Event & | ev | ) |
|
|
virtual |
◆ translate_mouse_wheel()
| virtual int nom::UIContextEventHandler::translate_mouse_wheel |
( |
const Event & | ev | ) |
|
|
protectedvirtual |
- Returns
- Positive X, Y axis wheel values are translated from SDL2 to libRocket as the 'up' direction in libRocket and negative X, Y axis wheel values are translated to libRocket as the 'down' direction.
◆ ctx_
The documentation for this class was generated from the following file: