CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
InputSystem.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
16 class InputManager;
17
18 class CE_SCRIPT_EXPORT() InputSystem final : public System<InputSystem> {
19 private:
22
23 public:
27 explicit InputSystem(InputManager& inputManager) noexcept;
28
29 public:
31 void update(double time) override;
32
34 [[nodiscard]] SystemOrder getOrder() const noexcept override { return 10; }
35 };
36
37} // namespace CeresEngine
#define CE_SCRIPT_EXPORT(...)
The CE_SCRIPT_EXPORT macro marks a class or method as exportable and available in scripting environme...
Definition Macros.hpp:247
Definition InputManager.hpp:29
Definition InputSystem.hpp:18
InputManager & inputManager
The input manager to be updated and handle input from.
Definition InputSystem.hpp:21
A system is a special kind of service that is managed internally by the SystemManager.
Definition System.hpp:168
Definition Application.hpp:19
int SystemOrder
A signed numeric type that represents the order in which a system should be updated by the SystemMana...
Definition System.hpp:31
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25