OSDN Git Service

plugins/sixaxis: Fix get_js_number() for devices connected via BT
authorAntonio Ospite <ao2@ao2.it>
Wed, 28 May 2014 09:50:20 +0000 (11:50 +0200)
committerSzymon Janc <szymon.janc@gmail.com>
Sun, 8 Jun 2014 12:54:41 +0000 (14:54 +0200)
commitfdbe933252b1f9ff2a0dca8869433b458a830b20
tree0472473f56fe1a017583fe250bc46bc8bbbce3e8
parent94235472946bb6eb20fc5e39b86a9ddbd43aba0e
plugins/sixaxis: Fix get_js_number() for devices connected via BT

Match hid devices and input devices using HID_UNIQ and UNIQ when these
are available, this is the correct way to get matching devices when the
controllers are connected via BT (UNIQ refers to the device bdaddr, PHYS
is the adapter bdaddr, so matching against PHYS will result in all
devices with the same LED number).

Fall back to HID_PHYS and PHYS when needed, hid devices do not define
HID_UNIQ when connected via USB.
plugins/sixaxis.c