[C ++] [UWP] [Windows .Gaming .Input]输入设备标识 [英] [C++][UWP][Windows​.Gaming​.Input] Input Device Identification

查看:71
本文介绍了[C ++] [UWP] [Windows .Gaming .Input]输入设备标识的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,有没有办法识别连接到PC的输入设备? (如游戏手柄,街机棒等)?在Xbox One SDK中,Windows :: Xbox :: Input :: IController中的每个设备都有自己的ID,但Windows :: Gaming :: Input :: IGameController没有
任何id字段。 

如何识别连接的设备?



祝你好运,Radek

Hello, is there any way to identify an input device that is connected to PC? (such as gamepad, arcade stick etc)? In Xbox One SDK every device in Windows::Xbox::Input::IController has got his own ID, but Windows::Gaming::Input::IGameController don't have any id fields. 
How to identify connected devices?

Best regards, Radek

推荐答案

您好Radek,



也许预发布RawGameController.HardwareProductId API就是您想要的。

https://docs.microsoft.com/ en-us / uwp / api / windows.gaming.input.rawgamecontroller



最好的问候,

David



Hi Radek,

Maybe the prerelease RawGameController.HardwareProductId API is what you want.
https://docs.microsoft.com/en-us/uwp/api/windows.gaming.input.rawgamecontroller

Best Regards,
David



这篇关于[C ++] [UWP] [Windows .Gaming .Input]输入设备标识的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆