mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-24 03:12:35 +01:00
9
Controls
Ilya edited this page 2021-08-24 16:43:40 +06:00
Table of Contents
Controls scheme is static and cannot be changed now but it perfeclty maps to any Playtation-like controller. Also compatible with BthPS3
By default keyboard controls are supported.
Mapping:
Control | Keyboard | Controller |
---|---|---|
Handbrake | Space | Y |
Brake | Down arrow | X |
Accelerate | Up arrow | A |
Burnout | Right shift | B |
Fast steer | Right control | Left shoulder |
Horn | L | Right shoulder |
Leave car | Enter | R3 |
Look left | A | Left trigger |
Look right | D | Right trigger |
Look back | S | L3 |
Pause | Esc | Start |
Change camera | C | Back |
D-pad | Arrows | D-pad |
Also controller supports analog controls.
- SELECT+START toggles ANALOG mode
- Pressing any keyboard controls disables ANALOG mode
Controls configuration
Keyboard controls can be redefined in config.ini file. To get a clue on keyboard key names please refer to SDL2 keycode documentation
It is also possible to reconfigure controller
Available button names:
- a, b, x, y
- back guide start
- leftstick rightstick
- leftshoulder rightshoulder
- dpup dpdown dpleft dpright
Available axis names:
- leftx lefty
- rightx righty
- lefttrigger righttrigger
Adding -
before axis names makes it inverse, so -leftx inverse left stick X axis
Debug keys
Game has some debug keys only available in developer builds.
Key | Action |
---|---|
1 | Toggle position display (DEBUG ONLY) |
2 | Switch between collision (DEBUG ONLY) |
3 | Debug stats (DEBUG ONLY) |
Psy-Cross layer keys - really needed to debug PSX-style API:
Key | Action |
---|---|
F1 | Toggle wireframe (DEBUG ONLY) |
F2 | Toggle textures (DEBUG ONLY) |
F3 | Toggle bilinear filtering |
F4 | Change keyboard controllers |
F5 | Toggle between PSX and HW clipping mode |
F6 | Toggle Z-buffer |
F10 | Dump VRAM |
F12 | Save screenshot |
Backspace | Disable VSync wait for vblank |