JustAnotherDnDGame 0.1.0
Jeu de rôle tactique au d20, vue de dessus, en C++/Qt
Loading...
Searching...
No Matches
QtKeyMap.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
8#include "HMI/Input/InputState.h" // hmi::Key
9
14
15namespace hmi {
16
24[[nodiscard]] std::optional<hmi::Key> qtKeyToHmiKey(int qtKey);
25
36[[nodiscard]] int hmiKeyToQtKey(hmi::Key key);
37
38} // namespace hmi
État des entrées clavier/souris/manette échantillonné une fois par frame.
Definition AudioEngine.cpp:15
std::optional< hmi::Key > qtKeyToHmiKey(int qtKey)
Traduit un code Qt::Key en hmi::Key.
Definition QtKeyMap.cpp:12
int hmiKeyToQtKey(hmi::Key key)
Traduit un hmi::Key en code Qt::Key, inverse de qtKeyToHmiKey (LOT-57 TACHE-04).
Definition QtKeyMap.cpp:55
Key
Touche du clavier, identifiée par son code virtuel Win32.
Definition InputState.h:29