-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
76 lines (59 loc) · 2.26 KB
/
config.h
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#ifndef CONFIG_H
#define CONFIG_H
#include <SDL2/SDL.h>
#include <stdint.h>
//-------------------------------- Logging -------------------------------------
/*
* If 1, the currently executed opcode, the current PC value and the pressed
* key is logged to the terminal.
*/
#define VERBOSE_LOG 0
//--------------------------------- Look ---------------------------------------
// Background color (inactive pixels)
#define BG_COLOR_R (uint8_t)25
#define BG_COLOR_G (uint8_t)60
#define BG_COLOR_B (uint8_t)15
// Foreground color (active pixels)
#define FG_COLOR_R (uint8_t)86
#define FG_COLOR_G (uint8_t)185
#define FG_COLOR_B (uint8_t)34
// Panic screen background
#define PANIC_BG_COLOR_R (uint8_t)8
#define PANIC_BG_COLOR_G (uint8_t)39
#define PANIC_BG_COLOR_B (uint8_t)245
// Panic screen foreground
#define PANIC_FG_COLOR_R (uint8_t)255
#define PANIC_FG_COLOR_G (uint8_t)255
#define PANIC_FG_COLOR_B (uint8_t)255
// Font color of messages
#define MESSAGE_COLOR_R (uint8_t)255
#define MESSAGE_COLOR_G (uint8_t)255
#define MESSAGE_COLOR_B (uint8_t)0
//-------------------------------- Shortcuts -----------------------------------
// See: https://wiki.libsdl.org/SDL_Keycode
#define SHORTCUT_KEYCODE_PAUSE SDLK_p
#define SHORTCUT_KEYCODE_FULLSCREEN SDLK_F11
#define SHORTCUT_KEYCODE_STEPPING_MODE SDLK_F5
#define SHORTCUT_KEYCODE_STEP_INST SDLK_F6
#define SHORTCUT_KEYCODE_TOGGLE_CURSOR SDLK_F9
#define SHORTCUT_KEYCODE_DEBUG_MODE SDLK_F10
#define SHORTCUT_KEYCODE_QUIT SDLK_ESCAPE
#define SHORTCUT_KEYCODE_DUMP_STATE SDLK_BACKSPACE
#define SHORTCUT_KEYCODE_INC_SPEED SDLK_F8
#define SHORTCUT_KEYCODE_DEC_SPEED SDLK_F7
#define SHORTCUT_KEYCODE_RESET SDLK_F4
#define SHORTCUT_KEYCODE_SCREENSHOT SDLK_F2
#define SHORTCUT_KEYCODE_TOGGLE_HELP SDLK_F1
#define SHORTCUT_KEYCODE_TOGGLE_COMPAT_SHIFTYREG SDLK_n
#define SHORTCUT_KEYCODE_TOGGLE_COMPAT_INCI SDLK_m
#define SHORTCUT_KEYCODE_GOTO_FILE_DLG SDLK_TAB
//--------------------------------- Misc. --------------------------------------
/*
* How long the messages in the left upper corner should be shown.
*/
#define MESSAGE_SHOW_TIME_S 3.0
/*
* How long the beep sound should be. Specified in frames
*/
#define BEEP_DURATION 50 // frames
#endif // CONFIG_H