SleakEngine 1.0.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
InputEventListener.hpp
Go to the documentation of this file.
1#ifndef _INPUTEVENTLISTENER_HPP_
2#define _INPUTEVENTLISTENER_HPP_
3
5
6namespace Sleak {
7 namespace Input {
8 /// Interface for objects that want raw keyboard/mouse/gamepad callbacks
9 /// from InputManager, independent of the Events dispatch system.
10 /// @ingroup input
12
13 public:
14 virtual void onInputEvent(const KeyboardEvent& event) = 0;
15 virtual void onKeyPress(const KeyboardEvent& event) = 0;
16 virtual void onKeyRelease(const KeyboardEvent& event) = 0;
17
18 virtual void onMousePress(const MouseEvent& event) = 0;
19 virtual void onMouseRelease(const MouseEvent& event) = 0;
20 virtual void onMouseMove(const MouseEvent& event) = 0;
21
22 virtual void onGamepadButtonPress(const GamepadEvent& event) = 0;
23 virtual void onGamepadButtonRelease(const GamepadEvent& event) = 0;
24 virtual void onGamepadAxisMotion(const GamepadEvent& event) = 0;
25
26 virtual ~InputEventListener() = default;
27 };
28 }
29}
30
31#endif
virtual void onGamepadButtonRelease(const GamepadEvent &event)=0
virtual void onKeyPress(const KeyboardEvent &event)=0
virtual void onGamepadButtonPress(const GamepadEvent &event)=0
virtual void onKeyRelease(const KeyboardEvent &event)=0
virtual void onInputEvent(const KeyboardEvent &event)=0
virtual void onGamepadAxisMotion(const GamepadEvent &event)=0
virtual void onMousePress(const MouseEvent &event)=0
virtual void onMouseRelease(const MouseEvent &event)=0
virtual ~InputEventListener()=default
virtual void onMouseMove(const MouseEvent &event)=0
Key and mouse-button code enumerations plus their name lookups.
Root namespace for everything the engine exposes.
Definition Camera.hpp:10