summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2020-09-21 00:38:22 +0200
committerBastien Nocera <hadess@hadess.net>2020-09-21 00:45:50 +0200
commit73d14d284ce143031984726f9a2949a5e63386e9 (patch)
tree7df63b8f462e4b411d13c0040416fc5c1d02043e
parent2b8cf369dd719aa61cebe803be6bc2d75b671b6b (diff)
downloadgnome-bluetooth-73d14d284ce143031984726f9a2949a5e63386e9.tar.gz
lib: Add another "keyboard" joypad
The 8bitdo Zero gamepad can also appear as a keyboard to pair using iCade protocol.
-rw-r--r--lib/bluetooth-client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 3e1ee392..0bcdf3c3 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -297,7 +297,8 @@ device_resolve_type_and_icon (Device1 *device, BluetoothType *type, const char *
g_return_if_fail (type);
g_return_if_fail (icon);
- if (g_strcmp0 (device1_get_name (device), "ION iCade Game Controller") == 0) {
+ if (g_strcmp0 (device1_get_name (device), "ION iCade Game Controller") == 0 ||
+ g_strcmp0 (device1_get_name (device), "8Bitdo Zero GamePad") == 0) {
*type = BLUETOOTH_TYPE_JOYPAD;
*icon = "input-gaming";
return;