Replace magic numbers in keyboard code with defs

- All scancode definitions are moved to scancode.h
- Magic numbers are replaced where applicable with definitions
This commit is contained in:
matt335672
2024-06-19 20:47:58 +01:00
parent ef14039c62
commit 5779edd23f
7 changed files with 117 additions and 64 deletions
+1 -1
View File
@@ -64,7 +64,7 @@
// Scancodes affected by numlock
#define IS_KEYPAD_SCANCODE(s) \
((s) >= XR_RDP_SCAN_MIN_NUMLOCK && (s) <= XR_RDP_SCAN_MAX_NUMLOCK)
((s) >= SCANCODE_MIN_NUMLOCK && (s) <= SCANCODE_MAX_NUMLOCK)
#define MAX_COMMENTS 10