Commit 5a0a6f3a authored by Bastien Nocera's avatar Bastien Nocera

lib: Make iCade appear as a joypad, not a keyboard

parent 1f8f3a2e
......@@ -297,7 +297,14 @@ device_resolve_type_and_icon (Device1 *device, BluetoothType *type, const char *
g_return_if_fail (type);
g_return_if_fail (icon);
*type = bluetooth_appearance_to_type (device1_get_appearance (device));
if (g_strcmp0 (device1_get_name (device), "ION iCade Game Controller") == 0) {
*type = BLUETOOTH_TYPE_JOYPAD;
*icon = "input-gaming";
return;
}
if (*type == 0 || *type == BLUETOOTH_TYPE_ANY)
*type = bluetooth_appearance_to_type (device1_get_appearance (device));
if (*type == 0 || *type == BLUETOOTH_TYPE_ANY)
*type = bluetooth_class_to_type (device1_get_class (device));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment