21 lines
858 B
Markdown
21 lines
858 B
Markdown
# STATUS: Camera positioning by number keys
|
|
|
|
## Changes made to RoomViewCore.h
|
|
|
|
1. Added `M_PI` constant definition for portability (line 32-33)
|
|
2. Added number key (0-9) handling in `rvInput()` function (lines 444-472):
|
|
- **0**: Reset camera to default position (south of map)
|
|
- **1-4**: Move camera to four quadrants at ~25 units distance
|
|
- **5-9**: Adjust camera distance 15→42 units with varying angles
|
|
- All number keys set `manualCamera = true` to disable automatic orbital drift
|
|
|
|
## Controls
|
|
- Number keys 0-9: Camera positioning presets
|
|
- WASD: Move camera (existing)
|
|
- Q/E: Orbit around lookAt (existing)
|
|
- R/F: Adjust altitude (existing)
|
|
- A/D (while orbiting): Change orbit speed (existing)
|
|
- SPACE: Pause/ unpause (existing)
|
|
|
|
## Build
|
|
`make netdeck` — builds both targets (ESP32-S3 firmware + SDL2 emulator). Both must stay green. |