SleakEngine
1.0.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
InputManager.hpp
Go to the documentation of this file.
1
#ifndef _INPUTMANAGER_HPP_
2
#define _INPUTMANAGER_HPP_
3
4
#include <
InputEventListener.hpp
>
5
#include <vector>
6
7
namespace
Sleak
{
8
namespace
Input
{
9
/// Static registry of InputEventListeners that raw input gets fanned out to.
10
/// @ingroup input
11
class
InputManager
{
12
public
:
13
14
static
void
RegisterListener
(
InputEventListener
* listener);
15
static
void
UnregisterListener
(
InputEventListener
* listener);
16
private
:
17
static
td::vector<InputEventListener*> EventListeners;
18
};
19
}
20
}
21
22
#endif
InputEventListener.hpp
Sleak::Input::InputEventListener
Definition
InputEventListener.hpp:11
Sleak::Input::InputManager
Definition
InputManager.hpp:11
Sleak::Input::InputManager::RegisterListener
static void RegisterListener(InputEventListener *listener)
Sleak::Input::InputManager::UnregisterListener
static void UnregisterListener(InputEventListener *listener)
Sleak::Input
Key and mouse-button code enumerations plus their name lookups.
Definition
InputAction.hpp:9
Sleak
Root namespace for everything the engine exposes.
Definition
Camera.hpp:10
include
public
Input
InputManager.hpp
Generated on
for SleakEngine by
1.16.1