DualShock 3 autoconfig to OUYA

In OUYA, (Android 4.1 Jelly Bean), Dual Shock 3 is recognized as in Linux, "PLAYSTATION (R) 3 Controller". The selection button was recognized as the first version of DualShock3.cfg.

I tested the controller at https://html5gamepad.com, which displays it as "Sony PLAYSTATION (R) 3 Controller (STANDARD GAMEPAD Vendor: 054c Product: 0268)".

The dmesg output from my notebook running Manjaro:

[ 4830.964914] usb 1-1: New USB device found, idVendor=054c, idProduct=0268, bcdDevice= 1.00
[ 4830.964920] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4830.964924] usb 1-1: Product: PLAYSTATION(R)3 Controller
[ 4830.964927] usb 1-1: Manufacturer: Sony
[ 4831.013483] hidraw: raw HID events driver (C) Jiri Kosina
[ 4831.024708] usbcore: registered new interface driver usbhid
[ 4831.024710] usbhid: USB HID core driver
[ 4831.057450] input: Sony PLAYSTATION(R)3 Controller Motion Sensors as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:054C:0268.0001/input/input17
[ 4831.114208] input: Sony PLAYSTATION(R)3 Controller as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:054C:0268.0001/input/input16
[ 4831.114378] sony 0003:054C:0268.0001: input,hiddev0,hidraw0: USB HID v81.11 Joystick [Sony PLAYSTATION(R)3 Controller] on usb-0000:00:14.0-1/input0

So, I don't think which it is a 3rd party/clone controller.
This commit is contained in:
ZacharyFoxx 2020-03-07 14:17:26 -03:00 committed by GitHub
parent 98b0da696c
commit a6c7de6467
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,54 @@
# PLAYSTATION(R)3 Controller, aka DualShock 3, on OUYA
input_driver = "android"
input_device = "PLAYSTATION(R)3 Controller"
input_b_btn = "96"
input_y_btn = "99"
input_select_btn = "4"
input_start_btn = "108"
input_up_btn = "19"
input_down_btn = "20"
input_left_btn = "21"
input_right_btn = "22"
input_a_btn = "97"
input_x_btn = "100"
input_l_btn = "102"
input_r_btn = "103"
input_l2_btn = "104"
input_r2_btn = "105"
input_l3_btn = "106"
input_r3_btn = "107"
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 = "Cross"
input_y_btn_label = "Square"
input_select_btn_label = "Select"
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 = "Circle"
input_x_btn_label = "Triangle"
input_l_btn_label = "L1"
input_r_btn_label = "R1"
input_l2_btn_label = "L2"
input_r2_btn_label = "R2"
input_l3_btn_label = "L3"
input_r3_btn_label = "R3"
input_l_x_plus_axis_label = "Left Analog X+"
input_l_x_minus_axis_label = "Left Analog X-"
input_l_y_plus_axis_label = "Left Analog Y+"
input_l_y_minus_axis_label = "Left Analog Y-"
input_r_x_plus_axis_label = "Right Analog X+"
input_r_x_minus_axis_label = "Right Analog X-"
input_r_y_plus_axis_label = "Right Analog Y+"
input_r_y_minus_axis_label = "Right Analog Y-"