microsoft / GDK

Microsoft Public GDK
http://aka.ms/gamedevdocs
Other
1.48k stars 99 forks source link

[System] GameInput on PC isn’t yet available. #11

Open FLY1NGSQU1RR3L opened 2 years ago

FLY1NGSQU1RR3L commented 2 years ago

The following APIs aren’t yet implemented in GameInput. They'll be available in a future update.

FLY1NGSQU1RR3L commented 2 years ago

Current plan of record: June 2022 GDK will begin to release part or all of the interfaces required to support GameInput on PC w/ the GDK.

DJm00n commented 2 years ago

Hi @FLY1NGSQU1RR3L!

Can you please clarify - whole GameInput is not available or just the listed methods?

Devaniti commented 2 years ago

@DJm00n whole GameInput is not available in public GDK yet.

r2d2Proton commented 2 years ago

I am available to implement this part of the code. I will work on right away and continue until it is completed, fully tested, and standby to make improvements as needed.

DJm00n commented 1 year ago

Looks like GameInput is now included in recent Microsoft.GDK.PC.220600 10.0.22000.4362 package:

native\220600\GRDK\gamekit\Include\GameInput.h native\220600\GRDK\gamekit\lib\amd64\GameInput.lib

More info here: https://github.com/microsoft/GDK/releases/tag/June_2022

r2d2Proton commented 1 year ago

I did run into a few of them myself. The raw stuff too - GetRawDeviceFeature, etc. More importantly though my USB Xbox controllers are not working. They do work in XInput and I would have expected the same in the latest GameInput API. Keyboard and mouse do work, USB Xbox 360 controller - no. That is bad code. Bade Code Review. Bad testing. Can you point me to a sample in the Windows-Driver-Sample that I can start from to create my own version of the interface?

spencerparkin commented 7 months ago

What's the licensing for GameInput? Can anyone write an application using it? Or do we have to wait until it's part of the windows SDK?

DJm00n commented 7 months ago

@spencerparkin https://github.com/microsoft/GDK/blob/Main/LICENSE-EN-US.MD

spencerparkin commented 7 months ago

@DJm00n SIGH..................I'll have my lawyer read all that and make sense of it for me. Thanks.

LordOfDragons commented 7 months ago

Taking a quick look at the licensing there it seems this is not usable by an open source game engine. Can you please clarify if an open source project in general can legally safely use the public GDK as available on NuGet?

Furthermore I tried using the public GDK from NuGet (the one supposed to contain GameInput.h) but it is broken. I find GameInput.h in the packages directory but VisualStudio refuses to find the file when using "GameInput.h". Can you fix the NuGet package to properly adjust additional include path as other packages do (like the WinRT ones)?

walbourn commented 2 months ago

The first package was a preview, so you should find the 2024 releases are functional.