Spring Default Keyboard Layout

Spring Default Keyboard Layout

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
User avatar
maackey
Posts: 490
Joined: 02 Jul 2008, 07:11

Spring Default Keyboard Layout

Post 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?
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Spring Default Keyboard Layout

Post 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?
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: Spring Default Keyboard Layout

Post 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
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Spring Default Keyboard Layout

Post 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 :)
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Spring Default Keyboard Layout

Post by knorke »

like i said in lobby some days ago:
-needs arrow keys (scrolling)
-US/EU layout differences
-Metalview -> F4 instead of F4 -> Metalview
User avatar
maackey
Posts: 490
Joined: 02 Jul 2008, 07:11

Re: Spring Default Keyboard Layout

Post 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 :|
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: Spring Default Keyboard Layout

Post by koshi »

maackey wrote:can't even upload it as a txt file :|
I suggest using http://gist.github.com/
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Spring Default Keyboard Layout

Post by Licho »

Post Reply

Return to “General Discussion”