hoijui: It does parse uikeys.txt, the file I have uploaded is old. I'll fix when I get home. It *should* be really flexible, and able to take in multiple keyboard layouts, but I've yet to make any.
Code: Select all
$layout1 = array(
array(1=>"Esc", "", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", ""),
array(1=>"~", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-", "=", "Backspace", ""),
array(1=>"Tab", "Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", "[", "]", "\\", ""),
array(1=>"Caps", "A", "S", "D", "F", "G", "H", "J", "K", "L", ";", "'", "Enter", "", ""),
array(1=>"Shift", "Z", "X", "C", "V", "B", "N", "M", ",", ".", '/', "Shift", "", "", ""),
array(1=>"Ctrl", "Meta", "Alt", "Space", "Alt", "???", "Ctrl", "", "", "", "", "", "", "", ""),
);
example layout (the one I'm using currently) Please feel free to make your own -- I don't know what keyboard you have so its best if you make your own and I'll make a switcher to choose between layouts.
You don't need the extra spaces in the lower lines, only the first line needs the max length.
You can have as many rows/columns as you want. I just haven't done the numpad/arrow key input yet (coming soon), and special characters are miserable to work with.
Satirik: hmmm... I guess that might be something... I dunno. It just seems like adding commands to every key would be really messy and not pretty. Also how would you go about differentiating ctrl+alt+shift modifiers? the "enter" key has all of them.
Licho: numbers currently only display specteam (and not control groups) because they are ordered in uikeys as 1, 2, 3... c+1, c+2, c+3... and not 1, c+1, 2, c+2, 3, c+3... so I either have to loop through the uikeys twice or somehow sort them to group certain keys together. It would be really cool to have stuff outside uikeys but I don't know how I'd fit it in.
Knorke: have you looked in the bottom right? ctrl+f your command and click on it! I still need to fix the key highlighting, but its there.
Attached is the source file for anyone who wants to laugh at my nub coding skills (or possibly add some improvements?
:nudge: :nudge: ) can't even upload it as a txt file
