[UWP]如何在WinJS UWP项目中处理XBOX游戏手柄的消息? [英] [UWP]How to handle the message of gamepad handle of XBOX on WinJS UWP project?
问题描述
大家好:
我正在开发XBOX上的HTML5视频播放器应用程序,我发现应用程序似乎只能ge t消息" 左撇子 ",
" 按钮 "和"B 按钮 "。
有没有办法让这些按钮留言?特别喜欢"方向垫(D-pad)"?
谢谢!
通常,UWP应用程序可以处理来自Gamepad的所有输入。在您的应用中获取Gamepad实例并使用 Gamepad.GetCurrentReading Method 到
获取游戏手柄的当前读数。您可以在此处从文档中获取更多信息: 阅读游戏手柄
此外,这里有一个官方样本: GamepadUWP 。
祝你好运,
Roy
Hi all:
I am develping a app of HTML5 video player on XBOX, I found it seems the app only can get the message of "Left stick", "A button" and "B button".
Is there any way to got the messages of these buttons left? espectily like "Directional pad (D-pad)"?
Thanks!
Hi,
Well, generally UWP apps could handle all the input from the Gamepad. Get the Gamepad instance in your app and use Gamepad.GetCurrentReading Method to get the currently reading of the Gamepad. You could get more information from the document here: Reading the gamepad
Also, here is an official sample about this here:GamepadUWP.
Best regards,
Roy
这篇关于[UWP]如何在WinJS UWP项目中处理XBOX游戏手柄的消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!