forked from Clones/Controlify
steamdeck identification
This commit is contained in:
@ -13,7 +13,8 @@ public enum ControllerType {
|
||||
UNKNOWN("Unknown Controller", ControllerTheme.XBOX_ONE),
|
||||
XBOX_ONE("Xbox Controller", ControllerTheme.XBOX_ONE),
|
||||
XBOX_360("Xbox 360 Controller", ControllerTheme.XBOX_ONE),
|
||||
DUALSHOCK4("PS4 Controller", ControllerTheme.DUALSHOCK4);
|
||||
DUALSHOCK4("PS4 Controller", ControllerTheme.DUALSHOCK4),
|
||||
STEAM_DECK("Steam Deck", ControllerTheme.XBOX_ONE);
|
||||
|
||||
private static final Gson GSON = new GsonBuilder().setLenient().create();
|
||||
private static Map<HIDIdentifier, ControllerType> typeMap = null;
|
||||
|
@ -67,6 +67,7 @@
|
||||
|
||||
"controlify.controller_theme.xbox_one": "Xbox",
|
||||
"controlify.controller_theme.dualshock4": "PS4",
|
||||
"controlify.controller_theme.steam_deck": "Steam Deck",
|
||||
|
||||
"controlify.binding.controlify.walk_forward": "Walk Forward",
|
||||
"controlify.binding.controlify.walk_backward": "Walk Backward",
|
||||
|
@ -2,7 +2,6 @@
|
||||
{
|
||||
"xbox_one": {
|
||||
"vendor": 1118, // 0x45e
|
||||
"friendly_name": "Xbox One Controller",
|
||||
"product": [
|
||||
767, // 0x2ff
|
||||
746, // 0x2ea
|
||||
@ -20,11 +19,16 @@
|
||||
},
|
||||
"dualshock4": {
|
||||
"vendor": 1356, // 0x54c
|
||||
"friendly_name": "PS4 Controller",
|
||||
"product": [
|
||||
1476, // 0x5c4
|
||||
2508, // 0x9cc
|
||||
2976 // 0xba0
|
||||
]
|
||||
},
|
||||
"steam_deck": {
|
||||
"vendor": 10462, // 0x28de
|
||||
"product": [
|
||||
4613 // 0x1205
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user