XInput

Use of external libraries (DLLs) from ZGE.

Moderator: Moderators

Post Reply
User avatar
Kjell
Posts: 1731
Joined: Sat Feb 23, 2008 11:15 pm

XInput

Post by Kjell » Sun Aug 02, 2020 5:02 pm

8)

For people that also want / need to support XInput* gamepads. Attached is a small wrapper & demo .. the left & right rumble motors are tied to the left & right analog triggers ( for demonstration purposes ).

*XInput only supports XInput compatible devices, while the build-in joystick functions don't support XInput-only devices.

K
Attachments
XInput.zgeproj
(56.58 KiB) Downloaded 28 times

User avatar
Ats
Posts: 277
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: XInput

Post by Ats » Mon Aug 03, 2020 11:17 am

Nice. Does it detect digital pad and shoulders buttons too? Those were not working before.
I'll try that this afternoon :)

User avatar
Kjell
Posts: 1731
Joined: Sat Feb 23, 2008 11:15 pm

Re: XInput

Post by Kjell » Mon Aug 03, 2020 11:50 am

Hi Ats,
Ats wrote:
Mon Aug 03, 2020 11:17 am
Does it detect digital pad and shoulders buttons too?
I haven't tested it with every XInput compatible controller in existence .. but no problems ( for me ) so far :wink:

Image
Ats wrote:
Mon Aug 03, 2020 11:17 am
Those were not working before.
You have a controller that works with the built-in joystick functions except for the D-Pad and shoulder buttons? That's pretty strange.

K

Post Reply