CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
DummyInputProvider.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
13
14namespace CeresEngine {
15
53
54} // namespace CeresEngine
A type that describes any possible event type.
Definition InputEvent.hpp:142
Definition DummyInputProvider.hpp:16
~DummyInputProvider() final
Destroys the DummyInputProvider.
void moveCursor(Vector2 position)
DummyInputProvider()
Create a new DummyInputProvider.
void buttonUp(Button button)
CursorMode getCursorMode() const
Definition DummyInputProvider.hpp:39
void pushEvent(const AnyInputEvent &event)
Pushes a new event to the provider.
Vector< AnyInputEvent > getEvents() final
A set of events that have been triggered since the last call to getEvents.
CursorMode mCursorMode
Definition DummyInputProvider.hpp:23
void mouseScroll(Vector2 position)
Vector< AnyInputEvent > mEvents
A set of events that have been triggered since the last call to getEvents.
Definition DummyInputProvider.hpp:21
void setCursorMode(CursorMode mode) final
Sets the cursor mode.
void buttonDown(Button button)
Definition InputProvider.hpp:21
Definition Application.hpp:19
Button
A enumeration of known buttons.
Definition Input.hpp:25
std::vector< T, ScopedAllocatorAdaptor< StdAllocator< T, RawAllocator > > > Vector
Vector is a sequence container that encapsulates dynamic size arrays.
Definition Vector.hpp:17
Button button(const StringView &str) noexcept
Returns the Button constant that is represented by str.
CursorMode
A enumeration of supported cursor modes.
Definition Input.hpp:428
@ Normal
Displays the cursor normally as per the user operating system preferences.
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25