le2d v0.4.7
2D game engine framework
 
Loading...
Searching...
No Matches
le::input::IMapping Class Referenceabstract

Interface for a set of input bindings. More...

#include <le2d/input/mapping.hpp>

Inheritance diagram for le::input::IMapping:
le::input::ActionMapping

Public Member Functions

virtual void dispatch (std::span< le::Event const > events, Gamepad::Manager const &gamepads)=0
 Process events and dispatch callbacks.
 
virtual void disengage ()=0
 Disengage all bindings.
 

Detailed Description

Interface for a set of input bindings.

Member Function Documentation

◆ disengage()

virtual void le::input::IMapping::disengage ( )
pure virtual

Disengage all bindings.

Implemented in le::input::ActionMapping.

◆ dispatch()

virtual void le::input::IMapping::dispatch ( std::span< le::Event const >  events,
Gamepad::Manager const &  gamepads 
)
pure virtual

Process events and dispatch callbacks.

Parameters
eventsList of events for this frame.
gamepadsGamepad manager instance.

Implemented in le::input::ActionMapping.


The documentation for this class was generated from the following file: