JustAnotherDnDGame 0.1.0
Jeu de rôle tactique au d20, vue de dessus, en C++/Qt
Loading...
Searching...
No Matches
GamepadButtonName.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
6#include <optional>
7#include <string>
8
10
16
17namespace hmi {
18
19class InputState;
20
26[[nodiscard]] std::string gamepadButtonDisplayName(GamepadButton button);
27
34[[nodiscard]] std::optional<GamepadButton> capturedGamepadButton(const InputState& input);
35
36} // namespace hmi
Bouton manette logique, indépendant de toute action de jeu ou touche clavier.
É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
std::optional< GamepadButton > capturedGamepadButton(const InputState &input)
Cherche le premier bouton manette pressé cette frame, pour la capture d'un remappage.
Definition GamepadButtonName.cpp:36
GamepadButton
Bouton (ou direction) manette remappable à une action de jeu (EX-CTRL-002, LOT-30).
Definition GamepadButton.h:22
std::string gamepadButtonDisplayName(GamepadButton button)
Nom lisible d'un bouton manette, pour l'affichage dans l'écran de remappage.
Definition GamepadButtonName.cpp:10