1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Key events sent from the Win32 window procedure to the main loop.
/// Events produced by keyboard shortcuts in the wallpaper window.
#[derive(Debug, Clone, Copy)]
pub enum KeyEvent {
/// Cycle to the next surface type (`[` / `]` keys).
CycleSurface,
/// Cycle to the previous surface type (`[` key).
CycleSurfaceBack,
/// Multiply animation speed by 1.1 (`+` key).
SpeedUp,
/// Multiply animation speed by 0.9 (`-` key).
SpeedDown,
/// Reinitialise all geodesics from the current config (`R` key).
ResetGeodesics,
/// Toggle the FPS HUD overlay (`F` key).
ToggleFpsHud,
/// Toggle pause / resume (`Space` key).
TogglePause,
/// Capture the current frame and save it as a PNG (`P` key).
Screenshot,
// ── Parameter tuner ──────────────────────────────────────────────────
/// Select the previous tunable parameter (`[` key).
TunerPrevParam,
/// Select the next tunable parameter (`]` key).
TunerNextParam,
/// Decrease the selected parameter by one step (`-` key).
TunerDecrease,
/// Increase the selected parameter by one step (`=` key).
TunerIncrease,
// ── Phase-portrait recorder ───────────────────────────────────────────
/// Toggle phase-portrait recording on/off (`Shift+R` key).
ToggleRecording,
// ── Gallery mode ──────────────────────────────────────────────────────
/// Toggle gallery mode on/off (`G` key).
ToggleGallery,
/// Skip to the previous surface in gallery mode (`LEFT` arrow key).
GalleryPrev,
/// Skip to the next surface in gallery mode (`RIGHT` arrow key).
GalleryNext,
}