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

Add XI->DI Trigger mappings for FireWeapon and ThrowGrenade #118

Open
BinToss opened this issue Jan 29, 2021 · 2 comments
Open

Add XI->DI Trigger mappings for FireWeapon and ThrowGrenade #118

BinToss opened this issue Jan 29, 2021 · 2 comments
Assignees
Labels
AREA_HXE Issue applies to HXE projects AREA_SPV3 Issue applies to SPV3 projects enhancement New feature or request

Comments

@BinToss
Copy link
Member

BinToss commented Jan 29, 2021

https://docs.microsoft.com/en-us/windows/win32/xinput/xinput-and-directinput#using-the-xbox-controller-with-directinput
XInput (X360, XOne) gamepads map triggers to separate axes in XInput, but they share an axis when loaded by Direct Input.
A Direct Input gamepad automatically maps the triggers to separate Z axes (Z, Rotation/Right Z).

Applications such as Xidi (BSD-3) and X2DCLI (no license) offer the ability to correctly map XInput gamepads to DirectInput button and axes.
The former also provides several mapping presets in addition to default XInput->DInput behavior (shared axes).
Additionally, Xidi allows a game to reconnect a disconnected gamepad. The default behavior requires the application/game to be restarted to detect the gamepad again.

@BinToss
Copy link
Member Author

BinToss commented Mar 13, 2021

On top of that, we would need a method to load it that would be forward-compatible with a mod loader.
For now, we might be able to get away with chucking it in the game's ./Controls/ folder and calling it a day.

When we begin testing a mod loader, I'll ensure non-stock modules like Xidi, Chimera, and Discord Rich Presence are moved to the new ./mods/ folder.

However, Xidi's configuration ini is loaded from the parent directory of the executable that loads its module. This functions okay, but its irritating that Xidi doesn't keep all its files in one place.

@BinToss BinToss added enhancement New feature or request AREA_HXE Issue applies to HXE projects AREA_SPV3 Issue applies to SPV3 projects labels Jul 17, 2021
@BinToss BinToss self-assigned this Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AREA_HXE Issue applies to HXE projects AREA_SPV3 Issue applies to SPV3 projects enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant