mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
[PR #1806] [MERGED] Android: Add >1 controller, multitap, external controller vibration #711
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/stenzek/duckstation/pull/1806
Author: @stenzek
Created: 3/14/2021
Status: ✅ Merged
Merged: 3/14/2021
Merged by: @stenzek
Base:
master← Head:android-multi-controllers📝 Commits (6)
ee17146CommonHostInterface: Move controller ID parsing to interface1839bfaAndroid: Rewrite input binding to be more flexiblec8a029cAndroid: Support more than one controller26ee2ceAndroid: Implement support 8 controllers (multitap)d2cef2eAndroid: Pretty print device IDs686fc4cAndroid: Add hotkey categories/grouping📊 Changes
30 files changed (+1152 additions, -789 deletions)
View changed files
📝
android/app/src/cpp/android_controller_interface.cpp(+111 -57)📝
android/app/src/cpp/android_controller_interface.h(+18 -12)📝
android/app/src/cpp/android_host_interface.cpp(+108 -2)📝
android/app/src/cpp/android_host_interface.h(+5 -0)📝
android/app/src/main/AndroidManifest.xml(+2 -2)📝
android/app/src/main/java/com/github/stenzek/duckstation/AndroidHostInterface.java(+5 -0)📝
android/app/src/main/java/com/github/stenzek/duckstation/ControllerBindingDialog.java(+38 -37)📝
android/app/src/main/java/com/github/stenzek/duckstation/ControllerBindingPreference.java(+88 -8)➖
android/app/src/main/java/com/github/stenzek/duckstation/ControllerMappingActivity.java(+0 -279)➕
android/app/src/main/java/com/github/stenzek/duckstation/ControllerSettingsActivity.java(+445 -0)📝
android/app/src/main/java/com/github/stenzek/duckstation/EmulationActivity.java(+16 -5)📝
android/app/src/main/java/com/github/stenzek/duckstation/EmulationSurfaceView.java(+158 -232)📝
android/app/src/main/java/com/github/stenzek/duckstation/GamePropertiesActivity.java(+1 -9)📝
android/app/src/main/java/com/github/stenzek/duckstation/MainActivity.java(+2 -4)📝
android/app/src/main/java/com/github/stenzek/duckstation/SettingsActivity.java(+3 -6)➕
android/app/src/main/res/drawable/ic_baseline_vibration_24.xml(+10 -0)📝
android/app/src/main/res/layout/fragment_controller_settings.xml(+2 -1)📝
android/app/src/main/res/menu/menu_main.xml(+5 -3)📝
android/app/src/main/res/values-es/arrays.xml(+3 -1)📝
android/app/src/main/res/values-it/arrays.xml(+3 -1)...and 10 more files
📄 Description
What the title says. New controller UI which is more flexible. Needs testing.
Controller descriptors are now used instead of "ControllerN" IDs, so you will need to rebind your controllers.
I've tested a combination of keyboards and DS4/XBox pads. Vibration even works with the XBox pad, but it's only on/off, no small/large motor.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.