Joystick-Input-Examples icon indicating copy to clipboard operation
Joystick-Input-Examples copied to clipboard

GDK's GameInput

Open mmozeiko opened this issue 2 years ago • 1 comments

Here's one more way to get controller data on Windows (and Xbox) - through GDK GameInput: https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/input/overviews/input-overview

From mrmixer on Handmade Network forum: https://handmade.network/forums/t/8710-using_microsoft_gameinput_api_with_multiple_controllers

mmozeiko avatar May 10 '23 02:05 mmozeiko

I can't get data from this API on my machine. I tried mrmixer's exe as well: it prints

gamepad 1 input
got reading.

in a loop, but does not recognize A being pressed. I've tried with Xbox 360, Xbox One, and PS4 controllers.

MysteriousJ avatar Aug 10 '23 01:08 MysteriousJ

Added overview and example for GDK GameInput. Would be nice to get displayName from it, but there seems to be a bug in the API that causes the field in DeviceInfo to always be null.

MysteriousJ avatar Jun 01 '24 18:06 MysteriousJ