mirror of
https://github.com/lobomfz/VIctory-xmem.git
synced 2026-12-06 05:48:38 +00:00
A comparison of the two builds' pad effect code found two places where the Xbox build compiled out what the PS5 build does: - Vehicles: trigger source 1937662562 gives R2 a notch at 70% of the pull (PS5 sub_5B32C20, 0x5b34543..0x5b35a0e). The Xbox producer 0x140d1b510 only turns it off. vehicle_notch wraps the producer's call and runs the PS5 block after it, with the Xbox build's own functions: the profile chooser, the producer's gate, component 12 (+0x14d) and component 17 (+0x5d0/+0x5d8), and the hysteresis on the throttle (the pad's right trigger). - Rumble: the pad manager's single-strength emitter splits one strength between the motors with a curve per platform. ps5_rumble points the Xbox emitter's table entry at the PS5 split (sub_8B31570), which then goes to the title's two-motor emitter. Also: effect kind 9 (vibration per zone) is shown as the PS5 handler passes it on, and VICTORY_PAD_EFFECTS_LOG logs each change of a trigger's effect. Both ports install only with VICTORY_DUALSENSE=1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.9 KiB
1.9 KiB
Controls
A connected controller works, as does the keyboard while the window has focus.
Default keyboard layout
| Keys | Controller |
|---|---|
| W/A/S/D, I/J/K/L | Left stick, right stick |
| Arrows | D-pad |
| Enter, Backspace, X, Y | A, B, X, Y |
| Q/E, Z/C | Shoulders, triggers |
| F/H | Stick clicks |
| Esc, Tab | Menu, View |
PC-style layout (VICTORY_KBM_PC=1)
| Input | Controller |
|---|---|
| W/A/S/D | Left stick |
| I/J/K/L | Right stick fallback |
| Mouse | Right stick when locked |
F2, backtick/tilde or F6 |
Toggles mouse lock |
| Left / right mouse | RT / LT |
| Left Shift / Right Shift, Enter | A |
| Space, X | X |
| R, Backspace | B |
| F | Y |
| Tab | LB |
| Q | RB |
| Left Ctrl / Right Ctrl | L3 |
| C, Caps Lock, H, middle mouse | R3 |
| E, Right arrow | D-pad Right |
| Up arrow, M | D-pad Up |
| Down arrow, Z | D-pad Down |
| Left arrow, G | D-pad Left |
| Esc | Menu (also unlocks the mouse) |
| P | Pause/Map (also unlocks the mouse) |
| V | View |
VICTORY_MOUSE_SENS scales mouse look; VICTORY_MOUSE_INVERT_Y=1 inverts Y.
DualSense (VICTORY_DUALSENSE=1)
- Light bar, adaptive triggers and actuator haptics, as sent by the PS5 build.
- Two PS5-only behaviours are ported: the R2 throttle notch in vehicles, and how a single rumble strength is split between the two motors.
- Rumble adds to the haptics.
- Light bar and trigger output goes through
/dev/hidrawN, which must be writable by you (Steam's udev rules do this). - Haptics use channels 3 and 4 of the controller's USB audio device.
- Haptics need wired USB. Light bar and triggers over Bluetooth are untested.
DualShock 4 (VICTORY_DUALSHOCK=1)
Light bar colours only, over USB or Bluetooth. No adaptive triggers or actuator haptics.
VICTORY_RUMBLE_GAIN and VICTORY_DUALSENSE_RUMBLE=0 apply to both Sony
controllers.