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
+83
View File
@@ -0,0 +1,83 @@
# Keyboard control definitions for the menus. Most keys can be
# described in a straightforward manner; consult the name table in
# src/sc2code/libs/input/sdl/keynames.c for the names of unusual keys.
# Most keys can be named by just the symbol they produce.
# Menu controls. Both sets of arrow keys, basically. Paging controls
# moving quickly through the file lists in Super Melee. Zooming
# controls zoom controls in the starmap. "Cancel" is also used to get
# you into menu mode to begin with. There is a "menu.Special" command
# currently unused by the game. It seems to have been originally used
# to call up details on starships in the Super Melee selection screen.
# Arrow key controls...
menu.up.1 = key Up
menu.down.1 = key Down
menu.right.1 = key Right
menu.left.1 = key Left
menu.pageup.1 = key PageUp
menu.pagedown.1 = key PageDown
menu.home.1 = key Home
menu.end.1 = key End
menu.zoomin.1 = key PageUp
menu.zoomout.1 = key PageDown
menu.select.1 = key Return
menu.select.2 = key RightControl
menu.cancel.1 = key Space
menu.cancel.2 = key RightShift
# ... and the number pad. Note that zoom controls on the starmap are
# different from the paging controls in Super Melee.
menu.up.2 = key Keypad-8
menu.down.2 = key Keypad-2
menu.left.2 = key Keypad-4
menu.right.2 = key Keypad-6
menu.pageup.2 = key Keypad-9
menu.pagedown.2 = key Keypad-3
menu.home.2 = key Keypad-7
menu.end.2 = key Keypad-1
menu.zoomin.2 = key Keypad-+
menu.zoomout.2 = key Keypad--
menu.select.3 = key Keypad-Enter
menu.cancel.3 = key Keypad-0
# System utility keys.
menu.delete.1 = key Delete
menu.delete.2 = key Keypad-.
menu.backspace.1 = key Backspace
menu.editcancel.1 = key Escape
menu.search.1 = key /
menu.next.1 = key Tab
menu.pause.1 = key Pause
menu.pause.2 = key F1
menu.exit.1 = key F10
menu.special.1 = key LeftAlt
menu.special.2 = key RightAlt
# Joystick controls, for both port 1 and 2.
menu.up.3 = joystick 0 axis 1 negative
menu.down.3 = joystick 0 axis 1 positive
menu.left.3 = joystick 0 axis 0 negative
menu.right.3 = joystick 0 axis 0 positive
menu.up.4 = joystick 0 hat 0 up
menu.down.4 = joystick 0 hat 0 down
menu.left.4 = joystick 0 hat 0 left
menu.right.4 = joystick 0 hat 0 right
menu.cancel.4 = joystick 0 button 1
menu.select.4 = joystick 0 button 0
menu.up.5 = joystick 1 axis 1 negative
menu.down.5 = joystick 1 axis 1 positive
menu.left.5 = joystick 1 axis 0 negative
menu.right.5 = joystick 1 axis 0 positive
menu.up.6 = joystick 1 hat 0 up
menu.down.6 = joystick 1 hat 0 down
menu.left.6 = joystick 1 hat 0 left
menu.right.6 = joystick 1 hat 0 right
menu.cancel.5 = joystick 1 button 1
menu.select.5 = joystick 1 button 0