科技 > 操作系统 > Windows

Win11新特性为掌机带来新开箱体验界面 方便按键和摇杆操作

8人参与 2025-07-16 Windows

科技媒体 windows latest 今天(7 月 16 日)发布博文,报道称微软计划为 windows 11 系统引入新特性,在检测到掌机设备启动后,首次装机体验(oobe)自动切换到新的用户界面。

消息源称在 windows 11 系统的 oobe 中,在检测到是由游戏掌机设备启动,系统将自动切换到一个专为掌机游戏优化的新用户界面。

微软在 windows 11 build 26200 预览版中,在 initializegamepadlegend () 函数的顶部嵌入相关代码,构造函数设置完成后,会运行以下代码:

let shouldshowgamepadlegend =
this.showlightfooter && cloudexperiencehost.environment.isgamepadbaseddevice()

cloudexperiencehost.environment.isgamepadbaseddevice () 函数会询问硬件抽象层,设备是否具有集成的游戏手柄控制。

如果返回 true,本地布尔变量 shouldshowgamepadlegend 就会变为 true,附上相关代码如下:

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 返回”等提示。

(0)

您想发表意见!!点此发布评论

推荐阅读

Win11/Win10 RP预览版更新KB5062649推送:修复 ESU 注册向导崩溃等问题

07-16

推荐用户迁移至Win11系统! 微软将在三个月后终止对Win10支持

07-16

windows文件保护怎么解除? Windows关闭文件保护功能的技巧

07-16

windows用户必看! 轻松几步关闭任务栏动画效果的技巧

07-16

Windows server 2025 NFS Server部署的图文步骤

07-17

CentOS7安装wget的多种实现方式(yum不可用的情况下)

07-17

猜你喜欢

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论