diff options
author | Bastien Nocera <hadess@hadess.net> | 2016-05-23 20:15:41 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2016-05-23 20:19:36 +0200 |
commit | 16e9032f14a48248c10734f3fc7fbb90b1e4aef1 (patch) | |
tree | 5e2e9da61ef2f382d0acd6b2c8e8fce1772a5cc2 | |
parent | 6429f793f1145f0f8cadb5cf3a8cfff5d5e67ad0 (diff) | |
download | gnome-bluetooth-16e9032f14a48248c10734f3fc7fbb90b1e4aef1.tar.gz |
lib: Add support for joysticks
As supported by the 8bitdo joypads.
-rw-r--r-- | lib/pin-code-database.xml | 5 | ||||
-rw-r--r-- | lib/pin.c | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/pin-code-database.xml b/lib/pin-code-database.xml index 0cefbd54..783800fd 100644 --- a/lib/pin-code-database.xml +++ b/lib/pin-code-database.xml @@ -43,7 +43,7 @@ <!DOCTYPE devices [ <!ELEMENT devices (device)+> <!ELEMENT device EMPTY> - <!ATTLIST device type (any|mouse|tablet|keyboard|headset|headphones|audio|printer|network) "any"> + <!ATTLIST device type (any|mouse|tablet|keyboard|headset|headphones|audio|printer|network|joypad) "any"> <!ATTLIST device oui CDATA #IMPLIED> <!ATTLIST device vendor CDATA #IMPLIED> <!ATTLIST device name CDATA #IMPLIED> @@ -171,6 +171,9 @@ <!-- Printers --> <device type="printer" pin="0000"/> + <!-- Joypads and joysticks --> + <device type="joypad" pin="0000"/> + <!-- Headphones and headsets --> <device type="headphones" pin="0000"/> <device type="headset" pin="0000"/> @@ -100,6 +100,7 @@ static guint string_to_type(const char *type) TYPE_IS ("audio", BLUETOOTH_TYPE_OTHER_AUDIO); TYPE_IS ("printer", BLUETOOTH_TYPE_PRINTER); TYPE_IS ("network", BLUETOOTH_TYPE_NETWORK); + TYPE_IS ("joypad", BLUETOOTH_TYPE_JOYPAD); g_warning ("unhandled type '%s'", type); return BLUETOOTH_TYPE_ANY; |