Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarInputEvent.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-07-31 08:40:56 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-07-31 08:40:56 +1000
commit42acfb3f2d27a7ca91868d628d715e6c0fcb5a93 (patch)
tree2a8e3d560c45e98399e925761b1a56fbe9e4ced5 /source/core/StarInputEvent.hpp
parent420f1d97312702b238fc98237285cdc2fe02684a (diff)
fix F16-F24 keys offsetting keycodes, add key name to canvas key callback args
Diffstat (limited to 'source/core/StarInputEvent.hpp')
-rw-r--r--source/core/StarInputEvent.hpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/source/core/StarInputEvent.hpp b/source/core/StarInputEvent.hpp
index e750efa..e8740b5 100644
--- a/source/core/StarInputEvent.hpp
+++ b/source/core/StarInputEvent.hpp
@@ -119,15 +119,6 @@ enum class Key : uint16_t {
F13,
F14,
F15,
- F16,
- F17,
- F18,
- F19,
- F20,
- F21,
- F22,
- F23,
- F24,
NumLock,
CapsLock,
ScrollLock,
@@ -146,7 +137,18 @@ enum class Key : uint16_t {
SysReq,
Pause,
Menu,
- Power
+ Power,
+ // can't have this where I want because canvases
+ // pass keycodes to Lua as a numeric code >:[
+ F16,
+ F17,
+ F18,
+ F19,
+ F20,
+ F21,
+ F22,
+ F23,
+ F24
};
extern EnumMap<Key> const KeyNames;