WinRT中的远程控制支持 [英] Remote Control support in WinRT

查看:118
本文介绍了WinRT中的远程控制支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开发一个可以通过遥控器控制的应用程序(我正在使用MS Media Center遥控器)

I'm trying to develop an App that can be controlled with a remote control (I'm using the MS Media Center Remote Control)

我尝试使用Window.Current.CoreWindow.KeyDown和Dispatcher.AcceleratorKeyActivated但它们不会触发遥控器上的播放按钮。

I tried using Window.Current.CoreWindow.KeyDown and Dispatcher.AcceleratorKeyActivated but they don't fire for the Play Button on the remote control.

是可以处理WM_APPCOMMAND消息( http:// msdn.microsoft.com/en-us/library/windows/desktop/ms646275(v=vs.85).aspx)

Is it possible to process the WM_APPCOMMAND messages (http://msdn.microsoft.com/en-us/library/windows/desktop/ms646275(v=vs.85).aspx)?

谢谢,

塞巴斯蒂安

推荐答案

塞巴斯蒂安,

    ;   看看这篇文章: 
http://social.msdn。 。microsoft.com/Forums/en-US/winappswithcsharp/thread/b3a05452-0162-46fd-813d-49adcefbfa16
功能

       Take a look at this post:  http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/b3a05452-0162-46fd-813d-49adcefbfa16


这篇关于WinRT中的远程控制支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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