Page 1 of 1

Spring Default Keyboard Layout

Posted: 15 Sep 2010, 09:35
by maackey
http://maackey.us/keyboard.php

I need to be up in a few hrs but I figured I'd share this before I go to bed and get some much needed sleep.

I'm still working on some little bugs (special characters... argh!!) and highlighting the correct keys. But maybe someone will find it useful?

Re: Spring Default Keyboard Layout

Posted: 15 Sep 2010, 10:21
by hoijui
cool :D
you seem to have some non-standard stuff there... (F11 -> screenshots)
does this parse uikeys? i guess.. as people have different keyboards, and different settings, it would have to be very flexible, or at least show exactly the default settings for a US keyboard(which you seem to be using) maybe.

did you do it all from scratch?

Re: Spring Default Keyboard Layout

Posted: 15 Sep 2010, 11:30
by Satirik
would be cool to have a bigger keyboard with the description directly on the key to get an overall view of the layout

Re: Spring Default Keyboard Layout

Posted: 15 Sep 2010, 12:38
by Licho
Also it would be cool o display things not in uikeys.
Like that numbers can select group, make group, goto group, that ctrl+alt+click can build stuff around other object and other quirks :)

Re: Spring Default Keyboard Layout

Posted: 15 Sep 2010, 13:34
by knorke
like i said in lobby some days ago:
-needs arrow keys (scrolling)
-US/EU layout differences
-Metalview -> F4 instead of F4 -> Metalview

Re: Spring Default Keyboard Layout

Posted: 15 Sep 2010, 17:46
by maackey
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? :wink: :wink: :nudge: :nudge: ) can't even upload it as a txt file :|

Re: Spring Default Keyboard Layout

Posted: 15 Sep 2010, 17:58
by koshi
maackey wrote:can't even upload it as a txt file :|
I suggest using http://gist.github.com/

Re: Spring Default Keyboard Layout

Posted: 15 Sep 2010, 19:46
by Licho