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