le2d v0.4.7
2D game engine framework
 
Loading...
Searching...
No Matches
le::input Namespace Reference

Namespaces

namespace  action
 

Classes

class  ActionMapping
 Stores bindings of actions to callbacks. More...
 
class  Chord
 
class  DigitalAxis
 
class  Dispatch
 
class  Gamepad
 Snapshot of gamepad / game controller state. More...
 
class  IAction
 Base class for all actions. More...
 
class  IMapping
 Interface for a set of input bindings. More...
 
class  KeyAxis
 
class  KeyChord
 
class  KeyTrigger
 
class  Listener
 
class  MouseButtonAxis
 
class  MouseButtonChord
 
class  MouseButtonTrigger
 
class  Router
 Stack of mappings, routes events to the topmost one. More...
 
class  ScopedMapping
 RAII wrapper for associating a mapping with a router. More...
 
class  Trigger
 

Typedefs

using OnAction = std::move_only_function< void(action::Value const &)>
 Action callback type.
 
using ScopedActionMapping = ScopedMapping< ActionMapping >
 

Enumerations

enum class  Device : std::int8_t { Keyboard , Mouse , Gamepad }
 Input Device enumeration. More...
 

Variables

constexpr std::size_t max_gamepads_v = GLFW_JOYSTICK_16
 

Typedef Documentation

◆ OnAction

using le::input::OnAction = typedef std::move_only_function<void(action::Value const&)>

Action callback type.

◆ ScopedActionMapping

Enumeration Type Documentation

◆ Device

enum class le::input::Device : std::int8_t
strong

Input Device enumeration.

Enumerator
Keyboard 
Mouse 
Gamepad 

Variable Documentation

◆ max_gamepads_v

constexpr std::size_t le::input::max_gamepads_v = GLFW_JOYSTICK_16
inlineconstexpr