mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-27 17:02:55 -04:00
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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user