- Added default bindings for the Xbox 360 controller buttons.

(Still to do: Make the menus work with a controller.)

SVN r1732 (trunk)
This commit is contained in:
Randy Heit 2009-07-23 05:06:38 +00:00
parent 8a2e03c9cb
commit 6906e1b0e3
2 changed files with 22 additions and 4 deletions

View file

@ -1,4 +1,5 @@
July 22, 2009 July 22, 2009
- Added default bindings for the Xbox 360 controller buttons.
- Fixed: Redefining an existing skill would set that skills ACSReturn to be - Fixed: Redefining an existing skill would set that skills ACSReturn to be
the same as the next new skill defined, if neither definition explicitly set the same as the next new skill defined, if neither definition explicitly set
the value for ACSReturn. the value for ACSReturn.

View file

@ -89,10 +89,6 @@ static const FBinding DefBindings[] =
{ "mouse2", "+strafe" }, { "mouse2", "+strafe" },
{ "mouse3", "+forward" }, { "mouse3", "+forward" },
{ "mouse4", "+speed" }, { "mouse4", "+speed" },
{ "joy1", "+attack" },
{ "joy2", "+strafe" },
{ "joy3", "+speed" },
{ "joy4", "+use" },
{ "capslock", "toggle cl_run" }, { "capslock", "toggle cl_run" },
{ "f1", "menu_help" }, { "f1", "menu_help" },
{ "f2", "menu_save" }, { "f2", "menu_save" },
@ -113,6 +109,27 @@ static const FBinding DefBindings[] =
{ "f12", "spynext" }, { "f12", "spynext" },
{ "mwheeldown", "weapnext" }, { "mwheeldown", "weapnext" },
{ "mwheelup", "weapprev" }, { "mwheelup", "weapprev" },
// Generic joystick buttons
{ "joy1", "+attack" },
{ "joy2", "+strafe" },
{ "joy3", "+speed" },
{ "joy4", "+use" },
// Xbox 360 / PS2 controllers
{ "pad_a", "+use" },
{ "pad_y", "+jump" },
{ "rtrigger", "+attack" },
{ "ltrigger", "+altattack" },
{ "lshoulder", "weapprev" },
{ "rshoulder", "weapnext" },
{ "dpadleft", "invprev" },
{ "dpadright", "invnext" },
{ "dpaddown", "invuse" },
{ "dpadup", "togglemap" },
{ "pad_start", "pause" },
{ "pad_back", "menu_main" },
{ "lthumb", "crouch" },
{ NULL } { NULL }
}; };