Added KeyCodes.md

This commit is contained in:
_N0x 2022-03-06 20:11:52 +01:00
parent 8b64db031a
commit 34f390d837
2 changed files with 250 additions and 5 deletions

248
KeyCodes.md Normal file
View File

@ -0,0 +1,248 @@
# KeyCodes
A list with the names of different keys that can be used to configure the macros.
**The names need to be copied exactly to the config file!**
### Modifier keys
These are the available keys for the "mod\_keys" Parameter inside the json file.
- MODKEY\_NONE
- MODKEY\_LCTR
- MODKEY\_LSHI
- MODKEY\_LALT
- MODKEY\_LWIN
- MODKEY\_RCTR
- MODKEY\_RSHI
- MODKEY\_RALT
- MODKEY\_RWIN
- MODKEY\_RWIN\_RSHI
- MODKEY\_RWIN\_RCTR
- MODKEY\_RWIN\_RALT
- MODKEY\_RWIN\_RCTR\_RSHI
- MODKEY\_RCTR\_RALT
- MODKEY\_RCTR\_RSHI
- MODKEY\_RALT\_RSHI
- MODKEY\_RALT\_RCTR\_RSHI
### Keys (up to 6 per macro-action)
These are the available keys to be used inside the macro actions (the "keys" array)
- KEY\_NONE
- KEY\_ErrorRollOver
- KEY\_POSTFail
- KEY\_ErrorUndefined
- KEY\_a\_A
- KEY\_b\_B
- KEY\_c\_C
- KEY\_d\_D
- KEY\_e\_E
- KEY\_f\_F
- KEY\_g\_G
- KEY\_h\_H
- KEY\_i\_I
- KEY\_j\_J
- KEY\_k\_K
- KEY\_l\_L
- KEY\_m\_M
- KEY\_n\_N
- KEY\_o\_O
- KEY\_p\_P
- KEY\_q\_Q
- KEY\_r\_R
- KEY\_s\_S
- KEY\_t\_T
- KEY\_u\_U
- KEY\_v\_V
- KEY\_w\_W
- KEY\_x\_X
- KEY\_y\_Y
- KEY\_z\_Z
- KEY\_1\_Exclamation
- KEY\_2\_At
- KEY\_3\_Pound
- KEY\_4\_Dollar
- KEY\_5\_Percent
- KEY\_6\_Caret
- KEY\_7\_Ampersand
- KEY\_8\_Asterisk
- KEY\_9\_LeftParenthesis
- KEY\_0\_RightParenthesis
- KEY\_ReturnEnter
- KEY\_Escape
- KEY\_DeleteBackspace
- KEY\_Tab
- KEY\_Spacebar
- KEY\_Dash\_Underscore
- KEY\_Equal\_Plus
- KEY\_LeftBracket\_LeftBrace
- KEY\_RightBracket\_RightBrace
- KEY\_Backslash\_Pipe
- KEY\_NonUS\_Pound\_Tilde
- KEY\_Semicolon\_Colon
- KEY\_SingleQuote\_DoubleQuote
- KEY\_GraveAccent\_Tilde
- KEY\_Comma\_LessThan
- KEY\_Period\_GreaterThan
- KEY\_Slash\_Question
- KEY\_CapsLock
- KEY\_F1
- KEY\_F2
- KEY\_F3
- KEY\_F4
- KEY\_F5
- KEY\_F6
- KEY\_F7
- KEY\_F8
- KEY\_F9
- KEY\_F10
- KEY\_F11
- KEY\_F12
- KEY\_PrintScreen
- KEY\_ScrollLock
- KEY\_Pause
- KEY\_Insert
- KEY\_Home
- KEY\_PageUp
- KEY\_DeleteForward
- KEY\_End
- KEY\_PageDown
- KEY\_RightArrow
- KEY\_LeftArrow
- KEY\_DownArrow
- KEY\_UpArrow
- KEYPAD\_NumLock\_Clear
- KEYPAD\_Slash
- KEYPAD\_Asterisk
- KEYPAD\_Minus
- KEYPAD\_Plus
- KEYPAD\_ENTER
- KEYPAD\_1\_End
- KEYPAD\_2\_DownArrow
- KEYPAD\_3\_PageDown
- KEYPAD\_4\_LeftArrow
- KEYPAD\_5
- KEYPAD\_6\_RightArrow
- KEYPAD\_7\_Home
- KEYPAD\_8\_UpArrow
- KEYPAD\_9\_PageUp
- KEYPAD\_0\_Insert
- KEYPAD\_Period\_Delete
- KEY\_NonUS\_Backslash\_Pipe
- KEY\_Application
- KEY\_Power
- KEYPAD\_Equal
- KEY\_F13
- KEY\_F14
- KEY\_F15
- KEY\_F16
- KEY\_F17
- KEY\_F18
- KEY\_F19
- KEY\_F20
- KEY\_F21
- KEY\_F22
- KEY\_F23
- KEY\_F24
- KEY\_Execute
- KEY\_Help
- KEY\_Menu
- KEY\_Select
- KEY\_Stop
- KEY\_Again
- KEY\_Undo
- KEY\_Cut
- KEY\_Copy
- KEY\_Paste
- KEY\_Find
- KEY\_Mute
- KEY\_VolumeUp
- KEY\_VolumeDown
- KEY\_LockingCapsLock
- KEY\_LockingNumLock
- KEY\_LockingScrollLock
- KEYPAD\_Comma
- KEYPAD\_EqualSign
- KEY\_International1
- KEY\_International2
- KEY\_International3
- KEY\_International4
- KEY\_International5
- KEY\_International6
- KEY\_International7
- KEY\_International8
- KEY\_International9
- KEY\_LANG1
- KEY\_LANG2
- KEY\_LANG3
- KEY\_LANG4
- KEY\_LANG5
- KEY\_LANG6
- KEY\_LANG7
- KEY\_LANG8
- KEY\_LANG9
- KEY\_AlternateErase
- KEY\_SysReq\_Attention
- KEY\_Cancel
- KEY\_Clear
- KEY\_Prior
- KEY\_Return
- KEY\_Separator
- KEY\_Out
- KEY\_Oper
- KEY\_Clear\_Again
- KEY\_CrSel\_Props
- KEY\_ExSel
- KEYPAD\_00
- KEYPAD\_000
- KEY\_ThousandsSeparator
- KEY\_DecimalSeparator
- KEY\_CurrencyUnit
- KEY\_CurrencySubunit
- KEYPAD\_LeftParenthesis
- KEYPAD\_RightParenthesis
- KEYPAD\_LeftBrace
- KEYPAD\_RightBrace
- KEYPAD\_Tab
- KEYPAD\_Backspace
- KEYPAD\_A
- KEYPAD\_B
- KEYPAD\_C
- KEYPAD\_D
- KEYPAD\_E
- KEYPAD\_F
- KEYPAD\_XOR
- KEYPAD\_Caret
- KEYPAD\_Percent
- KEYPAD\_LessThan
- KEYPAD\_GreaterThan
- KEYPAD\_Ampersand
- KEYPAD\_AmpersandAmpersand
- KEYPAD\_Pipe
- KEYPAD\_PipePipe
- KEYPAD\_Colon
- KEYPAD\_Pound
- KEYPAD\_Space
- KEYPAD\_At
- KEYPAD\_Exclamation
- KEYPAD\_MemoryStore
- KEYPAD\_MemoryRecall
- KEYPAD\_MemoryClear
- KEYPAD\_MemoryAdd
- KEYPAD\_MemorySubtract
- KEYPAD\_MemoryMultiply
- KEYPAD\_MemoryDivide
- KEYPAD\_PlusMinus
- KEYPAD\_Clear
- KEYPAD\_ClearEntry
- KEYPAD\_Binary
- KEYPAD\_Octal
- KEYPAD\_Decimal
- KEYPAD\_Hexadecimal
- KEY\_LeftControl
- KEY\_LeftShift
- KEY\_LeftAlt
- KEY\_LeftGUI
- KEY\_RightControl
- KEY\_RightShift
- KEY\_RightAlt
- KEY\_RightGUI

View File

@ -11,9 +11,8 @@ void testing(f_bffrP p_fb);
char *updated_file_name(char *orig); char *updated_file_name(char *orig);
int int
main(int argc, char *argv main(int argc, char *argv[]) {
[]) {
/* Read in the firmware file into a f_bffr_t struct */ /* Read in the firmware file into a f_bffr_t struct */
f_bffrP p_fb = get_firmware_buffer(argv[1]); f_bffrP p_fb = get_firmware_buffer(argv[1]);
@ -26,9 +25,7 @@ main(int argc, char *argv
printf("Length of my_macros: %d\r\n", len); printf("Length of my_macros: %d\r\n", len);
for (int i = 0; i < len; for (int i = 0; i < len; i++) {
i++) {
set_program(p_fb, my_macros[i]); set_program(p_fb, my_macros[i]);
free(my_macros[i]); free(my_macros[i]);
} }