The device event structure encapsulates event information such as mouse movement or key presses. More...
#include <mitsuba/hw/device.h>
Public Member Functions | |
| DeviceEvent () | |
| Default constructor. More... | |
| DeviceEvent (unsigned short type) | |
| Type constructor. More... | |
| unsigned short | getType () const |
| Return the event type. More... | |
| void | setType (int type) |
| Set the event type. More... | |
| void | setMousePosition (const Point2i &position) |
| Get the mouse position vector. More... | |
| Point2i | getMousePosition () const |
| Set the mouse position vector. More... | |
| void | setMouseRelative (const Vector2i &relative) |
| Get the relative mouse movement vector. More... | |
| Vector2i | getMouseRelative () const |
| Set the relative mouse movement vector. More... | |
| void | setMouseButton (unsigned short button) |
| Set the enum of the pressed mouse button. More... | |
| unsigned short | getMouseButton () const |
| Get the enum of the pressed mouse button. More... | |
| void | setKeyboardKey (char key) |
| Set the pressed keyboard key (latin1) More... | |
| char | getKeyboardKey () const |
| Get the pressed keyboard key (latin1) More... | |
| void | setKeyboardSpecial (unsigned short special) |
| Set the pressed keyboard key special identifier enum (see Device::ESpecialKeys) More... | |
| unsigned short | getKeyboardSpecial () const |
| Get the pressed keyboard key special identifier enum (see Device::ESpecialKeys) More... | |
| void | setKeyboardModifiers (unsigned short modifiers) |
| Set the keyboard modifiers (see Device::EKeyboardModifiers) More... | |
| unsigned short | getKeyboardModifiers () const |
| Get the keyboard modifiers (see Device::EKeyboardModifiers) More... | |
| const char * | getKeyboardInterpreted () const |
| Get the interpreted keypress data. More... | |
| char * | getKeyboardInterpreted () |
| Get the interpreted keypress data. More... | |
| void | setActionSource (Object *source) |
| Set the event source. More... | |
| Object * | getActionSource () |
| Get the event source. More... | |
| std::string | toString () const |
| Return a string representation. More... | |
The device event structure encapsulates event information such as mouse movement or key presses.
|
inline |
Default constructor.
|
inline |
Type constructor.
|
inline |
Get the event source.
|
inline |
Get the interpreted keypress data.
|
inline |
Get the interpreted keypress data.
|
inline |
Get the pressed keyboard key (latin1)
|
inline |
Get the keyboard modifiers (see Device::EKeyboardModifiers)
|
inline |
Get the pressed keyboard key special identifier enum (see Device::ESpecialKeys)
|
inline |
Get the enum of the pressed mouse button.
|
inline |
Set the mouse position vector.
|
inline |
Set the relative mouse movement vector.
|
inline |
Return the event type.
|
inline |
Set the event source.
|
inline |
Set the pressed keyboard key (latin1)
|
inline |
Set the keyboard modifiers (see Device::EKeyboardModifiers)
|
inline |
Set the pressed keyboard key special identifier enum (see Device::ESpecialKeys)
|
inline |
Set the enum of the pressed mouse button.
|
inline |
Get the mouse position vector.
|
inline |
Get the relative mouse movement vector.
|
inline |
Set the event type.
| std::string mitsuba::DeviceEvent::toString | ( | ) | const |
Return a string representation.
| unsigned short mitsuba::DeviceEvent::button |
| char mitsuba::DeviceEvent::interpreted[16] |
| char mitsuba::DeviceEvent::key |
| struct { ... } mitsuba::DeviceEvent::m_action |
| struct { ... } mitsuba::DeviceEvent::m_keyboard |
| struct { ... } mitsuba::DeviceEvent::m_mouse |
| unsigned short mitsuba::DeviceEvent::modifiers |
| Object* mitsuba::DeviceEvent::source |
| unsigned short mitsuba::DeviceEvent::special |
| int mitsuba::DeviceEvent::x |
| int mitsuba::DeviceEvent::xrel |
| int mitsuba::DeviceEvent::y |
| int mitsuba::DeviceEvent::yrel |