le2d v0.4.7
2D game engine framework
 
Loading...
Searching...
No Matches
mapping.hpp
Go to the documentation of this file.
1#pragma once
2#include "le2d/event.hpp"
4#include <klib/base_types.hpp>
5#include <span>
6
7namespace le::input {
9class IMapping : public klib::Polymorphic {
10 public:
14 virtual void dispatch(std::span<le::Event const> events, Gamepad::Manager const& gamepads) = 0;
15
17 virtual void disengage() = 0;
18};
19} // namespace le::input
Stores and maintains Gamepad states.
Definition gamepad.hpp:58
Interface for a set of input bindings.
Definition mapping.hpp:9
virtual void disengage()=0
Disengage all bindings.
virtual void dispatch(std::span< le::Event const > events, Gamepad::Manager const &gamepads)=0
Process events and dispatch callbacks.
Definition action.hpp:4