1
0
mirror of https://github.com/XLabsProject/iw4x-rawfiles.git synced 2023-08-02 15:02:11 +02:00

Add controller alt button layouts that swap triggers and shoulders

This commit is contained in:
Jan 2021-09-08 17:41:08 +02:00
parent 129d296715
commit 06995347cb
5 changed files with 178 additions and 2 deletions

View File

@ -0,0 +1,41 @@
set gpad_buttonsConfig "buttons_default"
bind BUTTON_START togglemenu
bind BUTTON_BACK togglescores
unbind BUTTON_RSHLDR
unbind BUTTON_LSHLDR
unbind BUTTON_RTRIG
unbind BUTTON_LTRIG
unbind BUTTON_RSTICK
unbind BUTTON_LSTICK
unbind BUTTON_A
unbind BUTTON_B
unbind BUTTON_X
unbind BUTTON_Y
unbind DPAD_UP
unbind DPAD_DOWN
unbind DPAD_LEFT
unbind DPAD_RIGHT
bind BUTTON_RSHLDR "+attack"
bind BUTTON_LSHLDR "+speed_throw"
bind BUTTON_RTRIG "+frag"
bind BUTTON_LTRIG "+smoke"
bind BUTTON_RSTICK "+melee"
bind BUTTON_LSTICK "+breath_sprint"
set gpad_button_rstick_deflect_max 1.0
set gpad_button_lstick_deflect_max 1.0
bind BUTTON_A "+gostand"
bind BUTTON_B "+stance"
bind BUTTON_X "+usereload"
bind BUTTON_Y "weapnext"
bind DPAD_UP "+actionslot 1"
bind DPAD_DOWN "+actionslot 2"
bind DPAD_LEFT "+actionslot 3"
bind DPAD_RIGHT "+actionslot 4"

View File

@ -0,0 +1,41 @@
set gpad_buttonsConfig "buttons_lefty"
bind BUTTON_START togglemenu
bind BUTTON_BACK togglescores
unbind BUTTON_RSHLDR
unbind BUTTON_LSHLDR
unbind BUTTON_RTRIG
unbind BUTTON_LTRIG
unbind BUTTON_RSTICK
unbind BUTTON_LSTICK
unbind BUTTON_A
unbind BUTTON_B
unbind BUTTON_X
unbind BUTTON_Y
unbind DPAD_UP
unbind DPAD_DOWN
unbind DPAD_LEFT
unbind DPAD_RIGHT
bind BUTTON_RSHLDR "+speed_throw"
bind BUTTON_LSHLDR "+attack"
bind BUTTON_RTRIG "+smoke"
bind BUTTON_LTRIG "+frag"
bind BUTTON_RSTICK "+breath_sprint"
bind BUTTON_LSTICK "+melee"
set gpad_button_rstick_deflect_max 1.0
set gpad_button_lstick_deflect_max 1.0
bind BUTTON_A "+gostand"
bind BUTTON_B "+stance"
bind BUTTON_X "+usereload"
bind BUTTON_Y "weapnext"
bind DPAD_UP "+actionslot 1"
bind DPAD_DOWN "+actionslot 2"
bind DPAD_LEFT "+actionslot 3"
bind DPAD_RIGHT "+actionslot 4"

View File

@ -0,0 +1,41 @@
set gpad_buttonsConfig "buttons_nomad"
bind BUTTON_START togglemenu
bind BUTTON_BACK togglescores
unbind BUTTON_RSHLDR
unbind BUTTON_LSHLDR
unbind BUTTON_RTRIG
unbind BUTTON_LTRIG
unbind BUTTON_RSTICK
unbind BUTTON_LSTICK
unbind BUTTON_A
unbind BUTTON_B
unbind BUTTON_X
unbind BUTTON_Y
unbind DPAD_UP
unbind DPAD_DOWN
unbind DPAD_LEFT
unbind DPAD_RIGHT
bind BUTTON_RSHLDR "+attack"
bind BUTTON_LSHLDR "+toggleads_throw"
bind BUTTON_RTRIG "+frag"
bind BUTTON_LTRIG "+smoke"
bind BUTTON_RSTICK "+stance"
bind BUTTON_LSTICK "+breath_sprint"
set gpad_button_rstick_deflect_max 1.0
set gpad_button_lstick_deflect_max 1.0
bind BUTTON_A "+gostand"
bind BUTTON_B "+melee"
bind BUTTON_X "+usereload"
bind BUTTON_Y "weapnext"
bind DPAD_UP "+actionslot 1"
bind DPAD_DOWN "+actionslot 2"
bind DPAD_LEFT "+actionslot 3"
bind DPAD_RIGHT "+actionslot 4"

View File

@ -0,0 +1,41 @@
set gpad_buttonsConfig "buttons_tactical"
bind BUTTON_START togglemenu
bind BUTTON_BACK togglescores
unbind BUTTON_RSHLDR
unbind BUTTON_LSHLDR
unbind BUTTON_RTRIG
unbind BUTTON_LTRIG
unbind BUTTON_RSTICK
unbind BUTTON_LSTICK
unbind BUTTON_A
unbind BUTTON_B
unbind BUTTON_X
unbind BUTTON_Y
unbind DPAD_UP
unbind DPAD_DOWN
unbind DPAD_LEFT
unbind DPAD_RIGHT
bind BUTTON_RSHLDR "+attack"
bind BUTTON_LSHLDR "+speed_throw"
bind BUTTON_RTRIG "+frag"
bind BUTTON_LTRIG "+smoke"
bind BUTTON_RSTICK "+stance"
bind BUTTON_LSTICK "+breath_sprint"
set gpad_button_rstick_deflect_max 1.0
set gpad_button_lstick_deflect_max 1.0
bind BUTTON_A "+gostand"
bind BUTTON_B "+melee"
bind BUTTON_X "+usereload"
bind BUTTON_Y "weapnext"
bind DPAD_UP "+actionslot 1"
bind DPAD_DOWN "+actionslot 2"
bind DPAD_LEFT "+actionslot 3"
bind DPAD_RIGHT "+actionslot 4"

View File

@ -105,8 +105,20 @@ menuDef
PC_OPTIONS_SEPERATOR(0)
PC_OPTIONS_DVARYESNO_RAW(1, "@MENU_LOOK_INVERSION", "input_invertPitch", ;, "@MPUI_DESC_LOOK_INVERSION", ON_GPAD_DISABLED, ON_GPAD_ENABLED)
PC_OPTIONS_STRLIST_RAW(2, "@MENU_THUMBSTICK_LAYOUT", "gpad_sticksConfig", {"@MENU_DEFAULT"; "thumbstick_default"; "@MENU_SOUTHPAW"; "thumbstick_southpaw"; "@MENU_LEGACY"; "thumbstick_legacy"; "@MENU_LEGACY_SOUTHPAW"; "thumbstick_legacysouthpaw"}, execNow "bindgpsticksconfigs";, ;, ON_GPAD_DISABLED, ON_GPAD_ENABLED)
PC_OPTIONS_STRLIST_RAW(3, "@MENU_BUTTON_LAYOUT", "gpad_buttonConfig", {"@MENU_DEFAULT"; "buttons_default"; "@MENU_TACTICAL"; "buttons_tactical"; "@MENU_LEFTY"; "buttons_lefty"; "@MENU_NOMAD"; "buttons_nomad"}, execNow "bindgpbuttonsconfigs";, ;, ON_GPAD_DISABLED, ON_GPAD_ENABLED)
PC_OPTIONS_STRLIST_RAW(2, "@MENU_THUMBSTICK_LAYOUT", "gpad_sticksConfig",
{"@MENU_DEFAULT"; "thumbstick_default";
"@MENU_SOUTHPAW"; "thumbstick_southpaw";
"@MENU_LEGACY"; "thumbstick_legacy";
"@MENU_LEGACY_SOUTHPAW"; "thumbstick_legacysouthpaw"}, execNow "bindgpsticksconfigs";, ;, ON_GPAD_DISABLED, ON_GPAD_ENABLED)
PC_OPTIONS_STRLIST_RAW(3, "@MENU_BUTTON_LAYOUT", "gpad_buttonConfig",
{"@MENU_DEFAULT"; "buttons_default";
"@MENU_TACTICAL"; "buttons_tactical";
"@MENU_LEFTY"; "buttons_lefty";
"@MENU_NOMAD"; "buttons_nomad";
"@MENU_DEFAULT_ALT"; "buttons_default_alt";
"@MENU_TACTICAL_ALT"; "buttons_tactical_alt";
"@MENU_LEFTY_ALT"; "buttons_lefty_alt";
"@MENU_NOMAD_ALT"; "buttons_nomad_alt"}, execNow "bindgpbuttonsconfigs";, ;, ON_GPAD_DISABLED, ON_GPAD_ENABLED)
PC_OPTIONS_DVARYESNO_RAW(4, "@MENU_SLOWDOWN_ENABLED", "gpad_slowdown_enabled", ;, "@MPUI_DESC_SLOWDOWN_ENABLED", ON_GPAD_DISABLED, ON_GPAD_ENABLED)
PC_OPTIONS_DVARYESNO_RAW(5, "@MENU_LOCKON_ENABLED", "gpad_lockon_enabled", ;, "@MPUI_DESC_LOCKON_ENABLED", ON_GPAD_DISABLED, ON_GPAD_ENABLED)
PC_OPTIONS_SEPERATOR(5)