CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
PlatformWindowInputProvider.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
11
14
15namespace CeresEngine {
16
53
54} // namespace CeresEngine
A type that describes any possible event type.
Definition InputEvent.hpp:142
Scoped connection class.
Definition Event.hpp:104
Definition InputProvider.hpp:21
Definition PlatformWindow.hpp:44
An input provider implementation for the macOS platform.
Definition PlatformWindowInputProvider.hpp:18
Vector< AnyInputEvent > mPendingEvents
A vector of pending events to be handled and processed by the input manager.
Definition PlatformWindowInputProvider.hpp:24
PlatformWindow & mWindow
The window that backs the input provider data.
Definition PlatformWindowInputProvider.hpp:21
void onPlatformWindowEvent(const AnyInputEvent &event)
Internal method called whenever the window receives an event.
void queueEvent(AnyInputEvent &&event)
Internal method called by the macOS window implementation to queue an event for handling by the input...
PlatformWindowInputProvider(PlatformWindow &window)
Creates a new input provider from the given window 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.
EventConnection mOnPlatformWindowEvent
Definition PlatformWindowInputProvider.hpp:27
~PlatformWindowInputProvider() override
Destroys the input provider instance.
Definition Application.hpp:19
std::vector< T, ScopedAllocatorAdaptor< StdAllocator< T, RawAllocator > > > Vector
Vector is a sequence container that encapsulates dynamic size arrays.
Definition Vector.hpp:17
CursorMode
A enumeration of supported cursor modes.
Definition Input.hpp:428
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25