[UWP] Windows.gaming.input.gamepad.vibration在暂停期间与extendedExecutionSession结合使用时处于非活动状态。 [英] [UWP]Windows.gaming.input.gamepad.vibration inactive during suspend in combination with extendedExecutionSession.

查看:67
本文介绍了[UWP] Windows.gaming.input.gamepad.vibration在暂停期间与extendedExecutionSession结合使用时处于非活动状态。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows.gaming.input.gamepad.vibration在暂停期间与extendedExecutionSession结合使用时无效。



简而言之:请确认应用windows.input.gamepad.vibration即使请求并授予了extendedExecutionSession,程序在后台运行(暂停)时,活动windows.input.gamepad对象的属性也无效?



上下文:针对Windows 17763的UWP桌面应用程序,请求并被授予extendedExecutionSession可以通过windows.gaming.input.gamepad的Vibration接口定位振动电机,但是一旦应用程序被最小化,应用Vibration属性
将无声地失败。



稍微长一点:应用程序在后台运行,循环程序使Gamepad的电机瞬间振动,extendedExecutionSession似乎工作,因为调用Vibration属性的例程继续在背景(验证了
虽然UI更新e调用在计数器上报告并在后台运行时递增)但将Vibration属性应用于Gamepad对象,这会在Foreground中运行时触发电机响应,导致
背景中的静默失败并且没有任何反应。一旦应用程序再次被带到前台,振动再次工作,这仍在执行其循环例程。这可以无限期地重复;前景:电机被触发,最小化:电机不会被触发,
背景:电机不会被触发,关注应用程序:电机再次被触发。

windows.gaming .input.gamepad.vibration文档提到没有后台/前台限制,Windows.gaming.input.gamepad也没有在extendedExecutionSession文档中找到这种类型的限制。


Windows.gaming.input.gamepad.vibration inactive during suspend in combination with extendedExecutionSession.

In short: please confirm applying a windows.input.gamepad.vibration property to an active windows.input.gamepad object has no effect while the program is running in the background (suspended) even though extendedExecutionSession was requested and granted?

Context: UWP desktop app targeting Windows 17763, requesting and being granted an extendedExecutionSession can target the vibration motors through a windows.gaming.input.gamepad's Vibration interface but once the app gets minimized applying the Vibration property silently fails.

Slightly longer: the app runs in the background with a looped routine that makes the Gamepad's motors vibrate momentarily, the extendedExecutionSession seems to work as the routine calling the Vibration property continues to work in the background (verified though UI update calls reporting on a counter that gets incremented while being backgrounded) but applying the Vibration property to the Gamepad object, which would trigger a motor response while running in the Foreground, results in a silent failure in the Background and nothing happens. Once the app is brought to the foreground again the Vibration works again which was still executing its looped routine. This can be repeated indefinitely; foreground: motors get triggered, minimizing: motors do not get triggered, background: motors do not get triggered, giving focus to the app: motors get triggered once again.
The windows.gaming.input.gamepad.vibration documentation mentions no background/foreground limitation nor does Windows.gaming.input.gamepad nor could I find any limitions of this kind in the extendedExecutionSession documentation.

推荐答案

你好  TimDingo,

Hello TimDingo,

这个问题与UWP有关,所以我会把它移到UWP论坛更专业的支持。

This issue is more related to UWP so I'll move it to UWP forum for more professional support.

祝你好运,

Rita


这篇关于[UWP] Windows.gaming.input.gamepad.vibration在暂停期间与extendedExecutionSession结合使用时处于非活动状态。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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