Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement - ini option - Use only specified player number's controller #36

Closed
bangstk opened this issue Oct 21, 2022 · 1 comment
Closed

Comments

@bangstk
Copy link

bangstk commented Oct 21, 2022

This is mostly useful for XInput -> Directinput remapping, and is a feature XInputPlus has.

An ini setting to configure the instance to ignore all XInput controllers except for a specified player number.

This is useful for instance for emulating splitscreen by launching multiple instances of a game that does not handle multiple joystick devices/gamepads properly, and therefore should get each instance filtered to a specified XInput player number. So that the player 1 instance ini can be set to only take input from the Player 1 gamepad, and the player 2 instance ini can be set to only take input from the Player 2 gamepad, and so on.

Thanks!

@samuelgr
Copy link
Owner

Implemented in e87a58a, replacing the INI option MaxVirtualControllerCount with ActiveVirtualControllerMask.

Following your example, you could give one of these to each instance.

[Workarounds]
; Only player 1
ActiveVirtualControllerMask = 0x01
[Workarounds]
; Only player 2
ActiveVirtualControllerMask = 0x02
[Workarounds]
; Only player 3
ActiveVirtualControllerMask = 0x04
[Workarounds]
; Only player 4
ActiveVirtualControllerMask = 0x08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants