bluetooth - 将 IPOGA 蓝牙游戏 handle 与 Retropie 结合使用

标签 bluetooth raspberry-pi emulation bluez

我尝试使用 Retropie 配置我的 Ipega PG-9025,但没有成功。我通过此链接 ( https://askubuntu.com/questions/608386/using-ipega-bluetooth-gamepad-with-steam-linux ) 取得了一些进展,但它仅适用于仿真站菜单...

游戏 handle 在每个模拟系统中都停止工作,并且在配对和重新连接设备时也遇到一些问题。

还有其他建议吗?还有其他尝试吗?

非常感谢

最佳答案

最后我找到了解决方案:我安装了最后一个Retropie 3.0 BETA版本。它集成了蓝牙管理器,您只需几个步骤即可配置您的 Ipega PG-9025:

1) 第一次您需要将 Ipega 与 Raspberry 配对(完成后,无需再这样做)。

检查您的加密狗是否正确连接:

$ hcitool dev

获取您的适配器编号(例如 hci0)

$ hciconfig

扫描您的蓝牙 Ipega 设备:

$ hcitool scan

使用之前扫描的 MAC 号码配对您的设备:

$ sudo bluez-simple-agent hci# xx:xx:xx:xx:xx:xx

配对后连接您的 Controller :

$ sudo bluez-test-input connect xx:xx:xx:xx:xx:xx

您需要信任此设备才能允许重新启动后自动连接:

$ sudo bluez-test-device trusted xx:xx:xx:xx:xx:xx yes

2) 检查您的 Controller 是否在输入设备中并正确响应:

验证是否存在输入文件,例如/dev/input/js0

$ ls /dev/input

您还可以使用以下命令尝试您的设备:

$ jstest /dev/input/js0

3) 现在您可以运行 retropie_setup.sh 脚本对其进行配置:

cd RetroPie-Setup/
sudo ./retropie_setup.sh

在菜单中,选择这些选项并按照说明进行操作:

SETUP (only if you already have run one of the installations above)

317 Register RetroArch controller

仅此而已,如果您需要使用 Neo Geo 系统,您将需要此处解释的额外配置:https://github.com/petrockblog/RetroPie-Setup/wiki/Neo-Geo#controls

它只是测试您的设备(jstest/dev/input/js0)并在正确的配置文件中设置按钮编号。

这是我在 Retropie 3.0 BETA 中运行的 Ipega PG-9025 和 Nintendo64 演示:https://www.youtube.com/watch?v=DmvQi0w0Tec

关于bluetooth - 将 IPOGA 蓝牙游戏 handle 与 Retropie 结合使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30481198/

相关文章:

bluetooth - Android API 是否支持蓝牙版本 4.2?

linux - Bluez 5.48 清除缓存设备

android - 如何在android 4.3 BLE中使用PROXIMITY PROFILE、IMMEDIATE ALERT SERVICE和Find Me Profile的配置文件?

c - 如何从 golang 正确地 IOCTL

android - 如何在 Eclipse Emulator for Android 中启用 GPS

java - 在 Android 中使用蓝牙在 2 个设备之间发送数据

python - 脚本 B 减慢了脚本 A

python - 多个蓝牙设备扫描

browser - 移动版 PC 版谷歌浏览器(面向开发者)

c# - 如何在 C# 中创建 COM(和其他设备)模拟器?