mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
scripting.h fix + input library
This commit is contained in:
parent
f9dd865bee
commit
f02edcf15a
12 changed files with 121 additions and 34 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue