Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gnome-bluetooth
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
gnome-bluetooth
Commits
5a0a6f3a
Commit
5a0a6f3a
authored
Sep 20, 2020
by
Bastien Nocera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: Make iCade appear as a joypad, not a keyboard
parent
1f8f3a2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
lib/bluetooth-client.c
lib/bluetooth-client.c
+8
-1
No files found.
lib/bluetooth-client.c
View file @
5a0a6f3a
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment