Touch controls (#2053)

* WIP touch controls

* Action icons

* Updates

* Don't mutate freeCamera config; allow switching between touch and controller cam

* Wow

* Fix build & add Skip button

* Fix build & add settings

* RCSS cleanup

* Dpad and fishing, might redo

* Add menu mouse controls

* More pointer & fix icons

* Optimizations & introduce layout system

* Update aurora

* Implement touch controls layout editor

* Cleanup & fixes

* Allow disabling mouse/touch in menus

* More fixes
This commit is contained in:
Luke Street
2026-06-15 12:48:04 -06:00
committed by GitHub
parent a6e5160c71
commit ad53af5c78
66 changed files with 6372 additions and 136 deletions
+14
View File
@@ -861,6 +861,20 @@ void ControllerConfigWindow::render_page(Pane& pane, int port, Page page) {
break;
}
case Page::Rumble: {
if (PADCanForceDeviceRumble(static_cast<u32>(port))) {
pane.add_child<BoolButton>(BoolButton::Props{
.key = "Use Device Haptics",
.getValue = [port] { return PADGetForceDeviceRumble(static_cast<u32>(port)); },
.setValue =
[port](bool value) {
PADSetForceDeviceRumble(static_cast<u32>(port), value ? TRUE : FALSE);
PADSerializeMappings();
},
.isDisabled = [this] { return mRumbleTestActive; },
});
pane.add_text("Use native device haptics instead of controller rumble. "
"Useful for devices with built-in gamepads.");
}
auto& rumbleTest = pane.add_select_button({
.key = "Test Rumble",
.getValue =