1
0
mirror of https://github.com/luanti-org/luanti.git synced 2026-01-12 12:15:26 +01:00
Files
luanti/src
Thierry FOURNIER a3cc982ecf Add PlayStation 5 DualSense controller support (#16808)
Implements a complete button and axis layout for the PS5 DualSense
controller on macOS, matching Minecraft-style controls:

- Analog sticks: Movement (left) and camera control (right)
- Face buttons: Jump (X), Sneak (Circle), Camera mode (Square),
  Drop item (Triangle)
- Triggers: L2/R2 mapped as analog axes for dig/place actions
- Bumpers: L1/R1 for hotbar navigation
- Stick clicks: L3 for sprint, R3 for zoom
- D-pad: Fly mode, autoforward, minimap, fast movement
- Touchpad click opens inventory
- Options button for pause menu

The layout is automatically detected when a controller named
"DualSense" is connected, or can be manually selected with
`joystick_type = ps5`.

Note: L2/R2 triggers use negative direction (-1) due to their
analog axis range going from -32768 (released) to +32767 (pressed).
2026-01-05 22:35:01 +01:00
..
2025-11-28 13:16:41 +01:00
2025-12-24 11:57:05 +01:00
2024-06-10 21:15:30 +02:00
2024-06-10 21:15:30 +02:00
2025-01-21 16:29:12 +01:00
2025-11-16 15:00:51 +01:00
2025-06-29 13:36:47 -07:00
2025-11-28 13:16:41 +01:00
2025-11-16 15:00:51 +01:00
2025-11-16 15:00:51 +01:00
2025-07-09 10:35:52 +02:00
2025-07-09 10:35:52 +02:00
2025-11-30 19:26:22 +01:00
2025-07-09 10:35:52 +02:00
2025-11-16 15:00:51 +01:00
2025-11-16 15:00:51 +01:00
2025-11-16 15:00:51 +01:00
2025-11-16 15:00:51 +01:00
2025-11-16 15:00:51 +01:00
2025-11-30 19:26:22 +01:00
2025-03-04 19:53:01 +01:00
2025-11-16 15:00:51 +01:00
2025-11-16 15:00:51 +01:00
2025-11-16 15:00:51 +01:00
2025-02-27 12:31:04 +01:00
2025-11-16 15:00:51 +01:00
2025-11-28 13:16:41 +01:00
2025-11-16 15:00:51 +01:00
2025-11-16 15:00:51 +01:00
2025-11-16 15:00:51 +01:00