Skip to content

Instantly share code, notes, and snippets.

@fabianofranz
Last active March 1, 2022 22:08
Show Gist options
  • Save fabianofranz/80d6a48516bc32ecf51106a00ce4de7a to your computer and use it in GitHub Desktop.
Save fabianofranz/80d6a48516bc32ecf51106a00ce4de7a to your computer and use it in GitHub Desktop.

Retropie + iPEGA 9025 Bluetooth Controller

/etc/udev/rules.d/99-bluetooth.rules

SUBSYSTEM=="input", ATTRS{name}=="ipega media gamepad controller", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"

/opt/retropie/configs/all/retroarch-joypads/ipega\ media\ gamepad\ controller.cfg

input_device = "ipega media gamepad controller"
input_driver = "udev"
input_vendor_id = "2578"
input_product_id = "1"

input_a_btn = "9"
input_b_btn = "10"
input_x_btn = "12"
input_y_btn = "13"

input_l_btn = "15"
input_r_btn = "16"
input_l2_btn = "17"
input_r2_btn = "18"
input_l3_btn = "22"
input_r3_btn = "23"

input_select_btn = "19"
input_start_btn = "20"

input_up_btn = "h0up"
input_down_btn = "h0down"
input_left_btn = "h0left"
input_right_btn = "h0right"

input_l_x_plus_axis = "+0"
input_l_x_minus_axis = "-0"
input_l_y_plus_axis = "+1"
input_l_y_minus_axis = "-1"
input_r_x_plus_axis = "+2"
input_r_x_minus_axis = "-2"
input_r_y_plus_axis = "+3"
input_r_y_minus_axis = "-3"

input_enable_hotkey_btn = "19"
input_exit_emulator_btn = "20"
input_reset_btn = "h0down"
input_load_state_btn = "15"
input_save_state_btn = "16"
input_menu_toggle_btn = "h0up"
input_state_slot_increase_btn = "h0right"
input_state_slot_decrease_btn = "h0left"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment