|
CeresEngine 0.2.0
A game development framework
|
An input provider implementation for the macOS platform. More...
#include <CeresEngine/Input/Provider/PlatformWindowInputProvider.hpp>
Public Member Functions | |
| PlatformWindowInputProvider (PlatformWindow &window) | |
| Creates a new input provider from the given window instance. | |
| ~PlatformWindowInputProvider () override | |
| Destroys the input provider instance. | |
| Vector< AnyInputEvent > | getEvents () final |
A set of events that have been triggered since the last call to getEvents. | |
| void | setCursorMode (CursorMode mode) final |
| Sets the cursor mode. | |
Public Member Functions inherited from CeresEngine::InputProvider | |
| virtual | ~InputProvider ()=default |
| Defaulted virtual destructor. | |
Protected Member Functions | |
| void | queueEvent (AnyInputEvent &&event) |
| Internal method called by the macOS window implementation to queue an event for handling by the input manager. | |
| void | onPlatformWindowEvent (const AnyInputEvent &event) |
| Internal method called whenever the window receives an event. | |
Private Attributes | |
| PlatformWindow & | mWindow |
| The window that backs the input provider data. | |
| Vector< AnyInputEvent > | mPendingEvents |
| A vector of pending events to be handled and processed by the input manager. | |
| EventConnection | mOnPlatformWindowEvent |
An input provider implementation for the macOS platform.
|
explicit |
Creates a new input provider from the given window instance.
|
override |
Destroys the input provider instance.
|
finalvirtual |
A set of events that have been triggered since the last call to getEvents.
The order is guaranteed to be in the order as they came in from the system.
Implements CeresEngine::InputProvider.
|
protected |
Internal method called whenever the window receives an event.
| event | The received event. |
|
protected |
Internal method called by the macOS window implementation to queue an event for handling by the input manager.
\ param event The event to be added to the provider event queue.
|
finalvirtual |
Sets the cursor mode.
| mode | The cursor mode to be set |
Implements CeresEngine::InputProvider.
|
private |
|
private |
A vector of pending events to be handled and processed by the input manager.
|
private |
The window that backs the input provider data.