简体   繁体   English

Android 12 DualSense/ DualShock 通过蓝牙支持

[英]Android 12 DualSense/ DualShock support via Bluetooth

Android 12 added some new nice features to the controller API like rumble support. Android 12 为 controller API 添加了一些新的不错的功能,例如支持隆隆声。 In Android 12 it's also possible to process the gyroscope and touchpad inputs from a DualSense/ DualShock controller via Bluetooth.在 Android 12 中,还可以通过蓝牙处理来自 DualSense/DualShock controller 的陀螺仪和触摸板输入。 How can an app process touchpad and gyroscope data from a DualSense/ DualShock controller?应用程序如何处理来自 DualSense/DualShock controller 的触摸板和陀螺仪数据? The official Remote Play app from Sony is able to do that but in my app for example the controller touchpad always acts as a mouse input (and even shows a mouse pointer inside the activity) and I don't know how to disable that.索尼的官方远程播放应用程序能够做到这一点,但在我的应用程序中,例如 controller 触摸板始终充当鼠标输入(甚至在活动中显示鼠标指针),我不知道如何禁用它。 Does anyone already have experience with this or are there examples available anywhere which I didn't found?有没有人已经有这方面的经验,或者在我没有找到的任何地方都有可用的例子?

This is probably doable with WebHI .这可能对WebHI是可行的。 I am aware of a project that provides a WebHID-based driver, so you can get access to the sensors in the controller.我知道一个提供基于 WebHID 的驱动程序的项目,因此您可以访问 controller 中的传感器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM