Major reworking of key configuration internals.

VControl no longer uses a custom configuration format; instead, control 
bindings are read in from the standard resource system.  Menu controls 
are specified in menu.key in the content; flight controls are now copied 
from uqm.key to flight.cfg instead of from starcon.key to uqm.key.

This change permits significant streamlining of the VControl code 
itself, and allows more fine-grained control over what the key 
configuration code iself does.  This update thus closes both Bug #949 
and Bug #961.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2705 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
mcmartin
2007-02-09 07:36:07 +00:00
parent ccc6ddac22
commit e7a86e4a8a
9 changed files with 352 additions and 974 deletions
+71
View File
@@ -0,0 +1,71 @@
keys.1.name = Arrows
keys.1.up.1 = key Up
keys.1.down.1 = key Down
keys.1.left.1 = key Left
keys.1.right.1 = key Right
keys.1.weapon.1 = key RightControl
keys.1.special.1 = key RightShift
keys.1.up.2 = key Keypad-8
keys.1.down.2 = key Keypad-2
keys.1.left.2 = key Keypad-4
keys.1.right.2 = key Keypad-6
keys.1.weapon.2 = key Keypad-Enter
keys.1.special.2 = key Keypad-0
keys.1.escape.1 = key Escape
keys.2.name = WASD
keys.2.up.1 = key w
keys.2.down.1 = key s
keys.2.left.1 = key a
keys.2.right.1 = key d
keys.2.weapon.1 = key v
keys.2.special.1 = key b
keys.2.escape.1 = key Escape
keys.3.name = Arrows (2)
keys.3.up.1 = key Up
keys.3.down.1 = key Down
keys.3.left.1 = key Left
keys.3.right.1 = key Right
keys.3.up.2 = key Keypad-8
keys.3.down.2 = key Keypad-2
keys.3.left.2 = key Keypad-4
keys.3.right.2 = key Keypad-6
keys.3.weapon.1 = key ]
keys.3.special.1 = key [
keys.3.escape.1 = key Escape
keys.4.name = ESDF
keys.4.up.1 = key e
keys.4.down.1 = key d
keys.4.left.1 = key s
keys.4.right.1 = key f
keys.4.weapon.1 = key q
keys.4.special.1 = key a
keys.4.escape.1 = key Escape
keys.5.name = Joystick 1
keys.5.up.1 = joystick 0 axis 1 negative
keys.5.down.1 = joystick 0 axis 1 positive
keys.5.left.1 = joystick 0 axis 0 negative
keys.5.right.1 = joystick 0 axis 0 positive
keys.5.up.2 = joystick 0 hat 0 up
keys.5.down.2 = joystick 0 hat 0 down
keys.5.left.2 = joystick 0 hat 0 left
keys.5.right.2 = joystick 0 hat 0 right
keys.5.weapon.1 = joystick 0 button 0
keys.5.special.1 = joystick 0 button 1
keys.5.escape.1 = key Escape
keys.6.name = Joystick 2
keys.6.up.1 = joystick 1 axis 1 negative
keys.6.down.1 = joystick 1 axis 1 positive
keys.6.left.1 = joystick 1 axis 0 negative
keys.6.right.1 = joystick 1 axis 0 positive
keys.6.up.2 = joystick 1 hat 0 up
keys.6.down.2 = joystick 1 hat 0 down
keys.6.left.2 = joystick 1 hat 0 left
keys.6.right.2 = joystick 1 hat 0 right
keys.6.weapon.1 = joystick 1 button 0
keys.6.special.1 = joystick 1 button 1
keys.6.escape.1 = key Escape