1.10 |
Base Input device class. More...
#include <input.h>
Public Member Functions | |
Input () | |
Input (const Input &)=delete | |
Input (Input &&) noexcept | |
virtual | ~Input () noexcept |
Input & | operator= (const Input &)=delete |
Input & | operator= (Input &&) noexcept |
Static Public Member Functions | |
static Object & | global_input () |
Get a reference to the global input Object. | |
Protected Member Functions | |
virtual void | dispatch (Event &event) |
Dispatch an event from this input. | |
Protected Attributes | |
bool | m_dispatching {false} |
Currently dispatching an event when true. | |
std::unique_ptr< detail::MouseGesture > | m_mouse |
The mouse gesture handler for this input. | |
Static Protected Attributes | |
static Object | m_global_handler |
This is the single global input handler. | |
Base Input device class.
An input device must inherit from this class and call dispatch() in order to dispatch events to the rest of the framework.
Input | ( | ) |
|
virtualnoexcept |
|
protectedvirtual |
Dispatch an event from this input.
|
inlinestatic |
Get a reference to the global input Object.
This allows you to connect to any Event dispatched from any Input device.
Example
|
protected |
Currently dispatching an event when true.
|
staticprotected |
This is the single global input handler.
Anything can attach to this object and receive all events unfiltered.
This can be useful for debugging, or simply capturing any events.
|
protected |
The mouse gesture handler for this input.