JustAnotherDnDGame 0.1.0
Jeu de rôle tactique au d20, vue de dessus, en C++/Qt
Loading...
Searching...
No Matches
PlayerInputMapper.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Valentin Eloy
2// SPDX-License-Identifier: GPL-3.0-or-later
3
4#pragma once
5
9
14
15namespace hmi {
16
17class InputState;
18
38[[nodiscard]] core::PlayerInput toPlayerInput(const InputState& input,
39 const GameKeyBindings& gameKeyBindings,
40 const GamepadBindings& gamepadBindings);
41
42} // namespace hmi
Association remappable action de jeu -> touche clavier, avec persistance (EX-CTRL-012).
Association remappable action de jeu -> bouton manette, avec persistance (EX-CTRL-002,...
Intention de déplacement du personnage, neutre vis-à-vis de l'entrée physique.
Association action de jeu -> touche, avec persistance JSON (EX-CTRL-012, LOT-29).
Definition GameKeyBindings.h:50
Association action de jeu (GameAction, partagée avec GameKeyBindings) -> bouton manette,...
Definition GamepadBindings.h:31
État des entrées d'une frame, avec détection des fronts (pressée / relâchée).
Definition InputState.h:97
Definition AudioEngine.cpp:15
core::PlayerInput toPlayerInput(const InputState &input, const GameKeyBindings &gameKeyBindings, const GamepadBindings &gamepadBindings)
Traduit l'état d'entrée en core::PlayerInput, dissocié des touches/boutons physiques (EX-CTRL-010,...
Definition PlayerInputMapper.cpp:12