微软 Win11 检测到掌机设备后, 首次装机体验设置切换至新界面
- 2025-07-17 04:03:46
- 616
IT之家7月16日消息,科技媒体WindowsLatest今天(7月16日)发布博文,报道称微软计划为Windows11系统引入新特性,在检测到掌机设备启动后,首次装机体验(OOBE)自动切换到新的用户界面。
消息源称在Windows11系统的OOBE中,在检测到是由游戏掌机设备启动,系统将自动切换到一个专为掌机游戏优化的新用户界面。
微软在Windows11Build26200预览版中,在initializeGamepadLegend函数的顶部嵌入相关代码,构造函数设置完成后,会运行以下代码:
letshouldShowGamepadLegend=
this.showLightFooter&CloudExperienceHost.Environment.isGamepadBasedDevice
CloudExperienceHost.Environment.isGamepadBasedDevice函数会询问硬件抽象层,设备是否具有集成的游戏手柄控制。
如果返回true,本地布尔变量shouldShowGamepadLegend就会变为true,IT之家附上相关代码如下:
if(CloudExperienceHost.FeatureStaging.isOobeFeatureEnabled("GamepadLegendEnabled")){
if(shouldShowGamepadLegend){
this.updateGamepadAButton
this.updateGamepadBButton
this.showGamepadLegend(true)
navManager.addEventListener("ShowBackButton"this.onShowGamepadBButton.bind(this))
navManager.addEventListener("HideBackButton"this.onHideGamepadBButton.bind(this))
}
}
根据上述代码显示的信息,在检测到设备包含Xbox风格的A/B/X/Y按钮硬件之后,在OOBE装机界面中,就会切换到手持友好的界面,后续操作会更改为“按A继续”或“按B返回”等提示。
- 上一篇:账期不超过天意味着什么
- 下一篇:宋江谁允许你变成这样了