Give ability to use controller emulation/key mapping only for some controllers by its GUID
I would like to add some automation with Playnite that emulate some type of controllers in function of the game launched but only for some controllers, specified by Guid or by GameControllerType. For example, enable emulation only for switch pro controller/joy-con or other less known controllers supported by SDL but not by Xinput This app is the only I know which can emulate controllers and use SDL
This also can be useful for more than just controller emulation, with this kind of implementation we can map different key for each controller, for example, we can imagine something like this :
# All controllers
+ = ESC
# Select a controller by its GUID (PS5 in this case)
SELECT_CONTROLLER_GUID = 030057564c050000e60c000000016800
S = ENTER
E = END
LEFT_STICK_MODE = NO_MOUSE
LLEFT = LEFT
LRIGHT = RIGHT
LUP = UP
LDOWN = DOWN
# Select a controller by its GUID (PS4 in this case)
SELECT_CONTROLLER_GUID = 03008fe54c050000cc09000000016800
S = A
E = SPACE
LEFT_STICK_MODE = NO_MOUSE
LLEFT = Q
LRIGHT = D
LUP = Z
LDOWN = S
And, like mentioned in the first post, emulate controller only for some controllers, inspired by the example given above :
# Select a controller by its GUID (PS5 in this case)
SELECT_CONTROLLER_GUID = 030057564c050000e60c000000016800
VIRTUAL_CONTROLLER = DS4
S = PS_CROSS
E = PS_CIRCLE
LEFT_STICK_MODE = LEFT_STICK
# Don't emulate DS4 for PS4 controller for obvious reason
Complete ignoring of controller by JSM with filtering by GUID https://github.com/pav1388/JoyShockMapper/releases/tag/v3.6.1-custom4