[gnome-bluetooth/wip/hadess/8bitdo-icade] lib: Add another "keyboard" joypad




commit 73d14d284ce143031984726f9a2949a5e63386e9
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Sep 21 00:38:22 2020 +0200

    lib: Add another "keyboard" joypad
    
    The 8bitdo Zero gamepad can also appear as a keyboard to pair using
    iCade protocol.

 lib/bluetooth-client.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]