Skip to content

Commit

Permalink
switch: Adjust default joy-con mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryOderNichts committed Sep 17, 2024
1 parent 4674a03 commit 6c96838
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions ios/ios_pad/source/controllers/switch_controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ static const MappingConfiguration default_generic_mapping = {
static const MappingConfiguration default_joycon_left_mapping = {
.num = 12,
.mappings = {
// map stick to dpad
{ BLOOPAIR_PRO_STICK_L_DOWN, BLOOPAIR_PRO_BUTTON_DOWN, },
{ BLOOPAIR_PRO_STICK_L_UP, BLOOPAIR_PRO_BUTTON_UP, },
{ BLOOPAIR_PRO_STICK_L_RIGHT, BLOOPAIR_PRO_BUTTON_RIGHT, },
{ BLOOPAIR_PRO_STICK_L_LEFT, BLOOPAIR_PRO_BUTTON_LEFT, },
// map stick to dpad (assume a sideways joycon)
{ BLOOPAIR_PRO_STICK_L_DOWN, BLOOPAIR_PRO_BUTTON_RIGHT, },
{ BLOOPAIR_PRO_STICK_L_UP, BLOOPAIR_PRO_BUTTON_LEFT, },
{ BLOOPAIR_PRO_STICK_L_RIGHT, BLOOPAIR_PRO_BUTTON_UP, },
{ BLOOPAIR_PRO_STICK_L_LEFT, BLOOPAIR_PRO_BUTTON_DOWN, },

{ SWITCH_BUTTON_MINUS, BLOOPAIR_PRO_BUTTON_MINUS },
// left joy-con only has capture button, let's map it to home
Expand All @@ -103,11 +103,11 @@ static const MappingConfiguration default_joycon_left_mapping = {
static const MappingConfiguration default_joycon_right_mapping = {
.num = 12,
.mappings = {
// map stick to dpad
{ BLOOPAIR_PRO_STICK_R_DOWN, BLOOPAIR_PRO_BUTTON_DOWN, },
{ BLOOPAIR_PRO_STICK_R_UP, BLOOPAIR_PRO_BUTTON_UP, },
{ BLOOPAIR_PRO_STICK_R_RIGHT, BLOOPAIR_PRO_BUTTON_RIGHT, },
{ BLOOPAIR_PRO_STICK_R_LEFT, BLOOPAIR_PRO_BUTTON_LEFT, },
// map stick to dpad (assume a sideways joycon)
{ BLOOPAIR_PRO_STICK_R_DOWN, BLOOPAIR_PRO_BUTTON_LEFT, },
{ BLOOPAIR_PRO_STICK_R_UP, BLOOPAIR_PRO_BUTTON_RIGHT, },
{ BLOOPAIR_PRO_STICK_R_RIGHT, BLOOPAIR_PRO_BUTTON_DOWN, },
{ BLOOPAIR_PRO_STICK_R_LEFT, BLOOPAIR_PRO_BUTTON_UP, },

// rotate abxy for sidewise joy-con
{ SWITCH_BUTTON_Y, BLOOPAIR_PRO_BUTTON_X, },
Expand Down

0 comments on commit 6c96838

Please sign in to comment.