Skip to content

Commit

Permalink
Remap gamepad binds
Browse files Browse the repository at this point in the history
Use left stick press to jump, Y to enable torch, A to use, right stick
to show current task
  • Loading branch information
Xottab-DUTY committed Jan 18, 2025
1 parent a370109 commit 3399954
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xrEngine/xr_level_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -974,13 +974,13 @@ class CCC_DefControls : public CCC_UnBindAll
{ kMAP, { SDL_SCANCODE_M, SDL_SCANCODE_UNKNOWN, XR_CONTROLLER_BUTTON_INVALID } },
{ kCONTACTS, { SDL_SCANCODE_H, SDL_SCANCODE_UNKNOWN, XR_CONTROLLER_BUTTON_INVALID } },

{ kJUMP, { SDL_SCANCODE_SPACE, SDL_SCANCODE_UNKNOWN, XR_CONTROLLER_BUTTON_A } },
{ kJUMP, { SDL_SCANCODE_SPACE, SDL_SCANCODE_UNKNOWN, XR_CONTROLLER_BUTTON_LEFTSTICK } },
{ kCROUCH_TOGGLE, { SDL_SCANCODE_UNKNOWN, SDL_SCANCODE_UNKNOWN, XR_CONTROLLER_BUTTON_B } },
{ kWPN_RELOAD, { SDL_SCANCODE_R, SDL_SCANCODE_UNKNOWN, XR_CONTROLLER_BUTTON_X } },
{ kUSE, { SDL_SCANCODE_F, SDL_SCANCODE_UNKNOWN, XR_CONTROLLER_BUTTON_Y } },
{ kUSE, { SDL_SCANCODE_F, SDL_SCANCODE_UNKNOWN, XR_CONTROLLER_BUTTON_A } },

{ kTORCH, { SDL_SCANCODE_L, SDL_SCANCODE_UNKNOWN, XR_CONTROLLER_BUTTON_RIGHTSTICK } },
{ kSCORES, { SDL_SCANCODE_TAB, SDL_SCANCODE_UNKNOWN, XR_CONTROLLER_BUTTON_LEFTSTICK } },
{ kTORCH, { SDL_SCANCODE_L, SDL_SCANCODE_UNKNOWN, XR_CONTROLLER_BUTTON_Y } },
{ kSCORES, { SDL_SCANCODE_TAB, SDL_SCANCODE_UNKNOWN, XR_CONTROLLER_BUTTON_RIGHTSTICK } },

{ kENTER, { SDL_SCANCODE_RETURN, SDL_SCANCODE_KP_ENTER, XR_CONTROLLER_BUTTON_START } },
{ kQUIT, { SDL_SCANCODE_ESCAPE, SDL_SCANCODE_UNKNOWN, XR_CONTROLLER_BUTTON_BACK } },
Expand Down

0 comments on commit 3399954

Please sign in to comment.