Skip to content

Commit

Permalink
Updated iBuffalo for several drivers + added Hyperkin Genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
kwyxz committed Jan 6, 2018
1 parent d78462e commit 27b01de
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
input_driver = "android"
input_device = "USB,2-axis 8-button gamepad"
input_device_display_name = "iBuffalo Classic USB Gamepad"
input_device_display_name = "iBuffalo Classic SNES USB Gamepad (BSGP801)"
input_vendor_id = 1411
input_product_id = 8288

Expand Down
35 changes: 35 additions & 0 deletions dinput/iBuffalo_BGCFC801.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
input_driver = "dinput"
input_device = "USB,2-axis 8-button gamepad"
input_device_display_name = "iBuffalo Classic Famicom USB Gamepad (BGCFC801)"

# Hex vid:pid is found using "dmesg -w" or "tail -f /var/log/syslog" and converted to Decimal using http://www.binaryhexconverter.com/hex-to-decimal-converter
# Hex vid:pid = 0583:2060 -> Decimal vid:pid = 1411:8288
# Appears as BUFFALO INC. (formerly MelCo., Inc.)
input_vendor_id = 1041
input_product_id = 198

input_b_btn = "1"
input_y_btn = "3"
input_select_btn = "6"
input_start_btn = "7"
input_up_axis = "-1"
input_down_axis = "+1"
input_left_axis = "-0"
input_right_axis = "+0"
input_a_btn = "0"
input_x_btn = "2"
input_l_btn = "4"
input_r_btn = "5"

input_b_btn_label = "B"
input_y_btn_label = "Y"
input_select_btn_label = "Select"
input_start_btn_label = "Start"
input_up_axis_label = "D-Pad Up"
input_down_axis_label = "D-Pad Down"
input_left_axis_label = "D-Pad Left"
input_right_axis_label = "D-Pad Right"
input_a_btn_label = "A"
input_x_btn_label = "X"
input_l_btn_label = "L"
input_r_btn_label = "R"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
input_driver = "dinput"
input_device = "USB,2-axis 8-button gamepad"
input_device_display_name = "iBuffalo Classic USB Gamepad"
input_device_display_name = "iBuffalo Classic SNES USB Gamepad (BSGP801)"

input_vendor_id = 1411
input_product_id = 8288
Expand Down
34 changes: 34 additions & 0 deletions udev/Hyperkin_Genesis_6_Button.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Hyperkin Sega Genesis Controller (6 buttons)

input_driver = "udev"
input_device = "USB Gamepad"
input_device_display_name = "Hyperkin Sega Genesis Controller (6 buttons)"

input_vendor_id = "121"
input_product_id = "17"

input_b_btn = "1"
input_y_btn = "0"
input_select_btn = "8"
input_start_btn = "9"
input_up_axis = "-1"
input_down_axis = "+1"
input_left_axis = "-0"
input_right_axis = "+0"
input_a_btn = "2"
input_x_btn = "4"
input_l_btn = "3"
input_r_btn = "5"

input_b_btn_label = "B"
input_y_btn_label = "A"
input_select_btn_label = "Mode"
input_start_btn_label = "Start"
input_up_btn_label = "D-Pad Up"
input_down_btn_label = "D-Pad Down"
input_left_btn_label = "D-Pad Left"
input_right_btn_label = "D-Pad Right"
input_a_btn_label = "C"
input_x_btn_label = "Y"
input_l_btn_label = "X"
input_r_btn_label = "Z"
35 changes: 35 additions & 0 deletions xinput/iBuffalo_BGCFC801.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
input_driver = "xinput"
input_device = "USB,2-axis 8-button gamepad"
input_device_display_name = "iBuffalo Classic Famicom USB Gamepad (BGCFC801)"

# Hex vid:pid is found using "dmesg -w" or "tail -f /var/log/syslog" and converted to Decimal using http://www.binaryhexconverter.com/hex-to-decimal-converter
# Hex vid:pid = 0583:2060 -> Decimal vid:pid = 1411:8288
# Appears as BUFFALO INC. (formerly MelCo., Inc.)
input_vendor_id = 1041
input_product_id = 198

input_b_btn = "1"
input_y_btn = "3"
input_select_btn = "6"
input_start_btn = "7"
input_up_axis = "-1"
input_down_axis = "+1"
input_left_axis = "-0"
input_right_axis = "+0"
input_a_btn = "0"
input_x_btn = "2"
input_l_btn = "4"
input_r_btn = "5"

input_b_btn_label = "B"
input_y_btn_label = "Y"
input_select_btn_label = "Select"
input_start_btn_label = "Start"
input_up_axis_label = "D-Pad Up"
input_down_axis_label = "D-Pad Down"
input_left_axis_label = "D-Pad Left"
input_right_axis_label = "D-Pad Right"
input_a_btn_label = "A"
input_x_btn_label = "X"
input_l_btn_label = "L"
input_r_btn_label = "R"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
input_driver = "xinput"
input_device = "USB,2-axis 8-button gamepad"
input_device_display_name = "iBuffalo Classic USB Gamepad"
input_device_display_name = "iBuffalo Classic SNES USB Gamepad (BSGP801)"

input_vendor_id = 1411
input_product_id = 8288
Expand Down

0 comments on commit 27b01de

Please sign in to comment.