-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathKeyBindsTranslation.h
23 lines (19 loc) · 984 Bytes
/
KeyBindsTranslation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once
#include "Definitions.h"
#include "KeyBindStructs.h"
#include "KeyBindHelper.h"
#include <string>
#include <Windows.h>
std::string to_string(KeyBinds::KeyControl pKeyControl, Language pLang);
/**
* \brief Converts a keyBind to a string. It will have the same design as the one in GW2.
* \param pKeyBind keyBind to convert.
* \param pLang The language used to as translation. If you provide Chinese as translation, the string is always empty.
* \param pKeyboardLayout The current keyboard layout used (is read from windows)
* \param pNotSetText `true` if a text should be added, when the key is not set.
* \return The String for this keyBind.
*/
std::string to_string(KeyBinds::Key pKeyBind, Language pLang, HKL pKeyboardLayout, bool pNotSetText = false);
std::string to_string(KeyBinds::KeyCode pKeyCode, Language pLang, HKL pKeyboardLayout);
std::string to_string(KeyBinds::MouseCode pMouseCode, Language pLang);
std::string to_string_unbind(Language pLang);