Skip to content

Instantly share code, notes, and snippets.

@rdlu
Last active September 23, 2017 13:51
Show Gist options
  • Select an option

  • Save rdlu/707bbb0b7da3220bdc1eadceb4ef675f to your computer and use it in GitHub Desktop.

Select an option

Save rdlu/707bbb0b7da3220bdc1eadceb4ef675f to your computer and use it in GitHub Desktop.

Revisions

  1. rdlu revised this gist Feb 18, 2017. 1 changed file with 22 additions and 12 deletions.
    34 changes: 22 additions & 12 deletions ipega classic gamepad.cfg
    Original file line number Diff line number Diff line change
    @@ -6,11 +6,9 @@

    input_driver = "udev"
    input_device = "ipega classic gamepad"
    input_device_display_name = "ipega PG-9025"
    input_vendor_id = "32903"
    input_product_id = "2012"
    input_b_btn = "9"
    input_y_btn = "12"

    input_select_btn = "19"
    input_start_btn = "20"
    input_up_btn = "h0up"
    @@ -19,14 +17,15 @@ input_left_btn = "h0left"
    input_right_btn = "h0right"
    input_a_btn = "10"
    input_x_btn = "13"
    input_b_btn = "9"
    input_y_btn = "12"
    input_l_btn = "15"
    input_r_btn = "16"
    input_l2_btn = "17"
    input_r2_btn = "18"
    input_l2_axis = "+5"
    input_r2_axis = "+4"
    input_l3_btn = "22"
    input_r3_btn = "23"


    input_l_x_plus_axis = "+0"
    input_l_x_minus_axis = "-0"
    input_l_y_plus_axis = "+1"
    @@ -42,10 +41,21 @@ input_select_btn_label = "Select"
    input_start_btn_label = "Start"
    input_a_btn_label = "B"
    input_x_btn_label = "Y"
    input_l_btn_label = "L"
    input_r_btn_label = "R"
    input_l_btn_label = "LB"
    input_r_btn_label = "RB"
    input_l2_axis_label = "LT"
    input_r2_axis_label = "RT"
    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_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_l_x_plus_axis_label = "L Analog Right"
    input_l_x_minus_axis_label = "L Analog Left"
    input_l_y_plus_axis_label = "L Analog Down"
    input_l_y_minus_axis_label = "L Analog Up"
    input_r_x_plus_axis_label = "R Analog Right"
    input_r_x_minus_axis_label = "R Analog Left"
    input_r_y_plus_axis_label = "R Analog Down"
    input_r_y_minus_axis_label = "R Analog Up"
  2. rdlu revised this gist Feb 18, 2017. No changes.
  3. rdlu created this gist Feb 18, 2017.
    51 changes: 51 additions & 0 deletions ipega classic gamepad.cfg
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,51 @@
    # -------------------------------------------------------------------------------------------------------------------------------------------------
    # If RetroArch do NOT detect the controller when connected via Bluetooth and won't even recognize manual binding,
    # fix it by adding this udev rule (the line below WITHOUT the # symbol at the beginning!) to "/etc/udev/rules.d/10-local.rules" and reboot.
    # SUBSYSTEM=="input", ATTRS{name}=="ipega classic gamepad", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
    # -------------------------------------------------------------------------------------------------------------------------------------------------

    input_driver = "udev"
    input_device = "ipega classic gamepad"
    input_device_display_name = "ipega PG-9025"
    input_vendor_id = "32903"
    input_product_id = "2012"
    input_b_btn = "9"
    input_y_btn = "12"
    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_a_btn = "10"
    input_x_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_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_b_btn_label = "A"
    input_y_btn_label = "X"
    input_select_btn_label = "Select"
    input_start_btn_label = "Start"
    input_a_btn_label = "B"
    input_x_btn_label = "Y"
    input_l_btn_label = "L"
    input_r_btn_label = "R"

    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"