Skip to content

Commit

Permalink
Merge pull request #25 from stefandesu/add_magic_joy_box
Browse files Browse the repository at this point in the history
Add config for Magic Joy Box GC adapter
  • Loading branch information
Maschell authored Jul 15, 2018
2 parents 8a44455 + aacf0bf commit 4a37354
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions magic_joy_box_gamecube.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// GameCube Controller connected via 3in1 Magic Joy Box (TigerGame) USB to PS2/PS/GC/XBOX Game Controller Adapter
[vid=0x0926,pid=0x2526]

// byte-position / value

// General
DPAD_MODE = DPAD_NORMAL
PAD_COUNT = 1

// Set normal buttons
VPAD_BUTTON_A = 0x01, 0x01
VPAD_BUTTON_B = 0x01, 0x02
VPAD_BUTTON_X = 0x01, 0x04
VPAD_BUTTON_Y = 0x01, 0x08
VPAD_BUTTON_PLUS = 0x01, 0x80 // Start

// Set triggers
VPAD_BUTTON_L = 0x01, 0x10
VPAD_BUTTON_R = 0x01, 0x20
VPAD_BUTTON_ZR = 0x01, 0x40 // Z

// Set dpad values
VPAD_BUTTON_LEFT = 0x02, 0x01
VPAD_BUTTON_RIGHT = 0x02, 0x02
VPAD_BUTTON_DOWN = 0x02, 0x04
VPAD_BUTTON_UP = 0x02, 0x08

// Left Stick
VPad_L_Stick_X = 0x03, 0x83
VPad_L_Stick_Y = 0x04, 0x7D
VPad_L_Stick_X_MinMax = 0x1F, 0xE9
VPad_L_Stick_Y_MinMax = 0x19, 0xE1
VPad_L_Stick_X_Deadzone = 0x08
VPad_L_Stick_Y_Deadzone = 0x08
VPad_L_Stick_Y_Invert = true

// Right Stick (C stick)
VPad_R_Stick_X = 0x05, 0x40
VPad_R_Stick_Y = 0x06, 0x9E
VPad_R_Stick_X_MinMax = 0x10, 0x6E
VPad_R_Stick_Y_MinMax = 0x87, 0xB7
VPad_R_Stick_X_Deadzone = 0x04
VPad_R_Stick_Y_Deadzone = 0x04
VPad_R_Stick_Y_Invert = true

0 comments on commit 4a37354

Please sign in to comment.