Last active
January 1, 2025 20:59
-
-
Save bqcuong/2db3e28406006b86500b43dab453f5a6 to your computer and use it in GitHub Desktop.
Xbox One 2015 Controller configuration for Half Life (xash3d-fwgs engine) on R36S
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // /roms/ports/Half-Life/value/autoexec.cfg | |
| alias "+SelectHold" "bind L1_BUTTON load quick; bind R1_BUTTON save quick; bind X_BUTTON cancelselect" | |
| alias "-SelectHold" "bind L1_BUTTON +duck; bind R1_BUTTON +attack; bind X_BUTTON impulse 100" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /opt/system/Tools/PortMaster/control.txt | |
| # The code in this file fixes mappings for the only handheld's built-in gamepad | |
| # We would also want to fix the wrong L1/L2 and R1/R2 mappings for our XBox controller | |
| # Change the below line... | |
| grep "${SDLDBUSERFILE}" -e "${DEVICE}" > /tmp/gamecontrollerdb.txt | |
| # to... | |
| cat $SDLDBUSERFILE > /tmp/gamecontrollerdb.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~/.config/SDL-GameControllerDB/gamecontrollerdb.txt | |
| 190000004b4800000011000000010000,GO-Super Gamepad,a:b1,b:b0,back:b12,dpdown:b9,dpleft:b10,dpright:b11,dpup:b8,guide:b16,leftshoulder:b4,leftstick:b14,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b15,righttrigger:b7,rightx:a2,righty:a3,start:b13,x:b2,y:b3,platform:Linux, | |
| 030000005e040000dd02000003020000,Microsoft Xbox One 2015,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:a2,leftstick:b9,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:a5,rightstick:b10,righttrigger:b5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // /roms/ports/Half-Life/value/userconfig.cfg | |
| //////////////////////////////////////// | |
| // Left Stick: Move | |
| // Right Stick: Look | |
| //------------------------------------- | |
| // A: Use Item | |
| // B: Jump | |
| // X: Flash | |
| // Y: Reload | |
| //------------------------------------- | |
| // D-PAD Left: Previous Weapon | |
| // D-PAD Right: Next Weapon | |
| // D-PAD Right: Quick Swap Weapon | |
| // D-PAD Up: Spray | |
| //------------------------------------- | |
| // L1_BUTTON: Duck | |
| // L2_Button + Left Stick: Walk | |
| // R1_Button: Fire | |
| // R2_Button: Alt-Fire | |
| //------------------------------------- | |
| // FN: Flash | |
| // START: PAUSE | |
| //------------------------------------- | |
| // SELECT + L1_BUTTON: Quick Load | |
| // SELECT + L1_BUTTON: Quick Save | |
| // SELECT + START: Quit | |
| //------------------------------------- | |
| // Look Sensitivity: 1.5 | |
| //////////////////////////////////////// | |
| bind UPARROW "+forward" | |
| bind DOWNARROW "+back" | |
| bind LEFTARROW "+left" | |
| bind RIGHTARROW "+right" | |
| bind A_BUTTON "+use" | |
| bind B_BUTTON "+jump" | |
| bind X_BUTTON "impulse 100" | |
| bind Y_BUTTON "+reload" | |
| bind L1_BUTTON "+duck" | |
| bind R1_BUTTON "+attack" | |
| bind LTRIGGER "+speed" | |
| bind RTRIGGER "+attack2" | |
| bind MODE "impulse 100" | |
| bind START "pause" | |
| bind BACK "+SelectHold" | |
| bind DPAD_UP "impulse 201" | |
| bind DPAD_DOWN "lastinv" | |
| bind DPAD_LEFT "invprev" | |
| bind DPAD_RIGHT "invnext" | |
| sensitivity "1.5" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment