scripting.h fix + input library

This commit is contained in:
MihailRis 2024-05-05 00:28:30 +03:00
parent f9dd865bee
commit f02edcf15a
12 changed files with 121 additions and 34 deletions

View file

@ -83,6 +83,7 @@ enum class keycode : int {
NUM_LOCK = 282,
LEFT_BRACKET = 91,
RIGHT_BRACKET = 93,
UNKNOWN = -1
};
@ -102,6 +103,8 @@ inline mousecode MOUSECODES_ALL[] {
};
namespace input_util {
void initialize();
keycode keycode_from(const std::string& name);
/// @return Key label by keycode
std::string to_string(keycode code);
/// @return Mouse button label by keycode