forked from od-contrib/commander
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_def.h
123 lines (110 loc) · 2.5 KB
/
config_def.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#ifndef CONFIG_DEF_H_
#define CONFIG_DEF_H_
// Defines for config defaults, so that they can be overriden via the build
// system.
#ifndef RES_DIR
#define RES_DIR "res/"
#endif
#ifndef SCREEN_WIDTH
#define SCREEN_WIDTH 320
#endif
#ifndef SCREEN_HEIGHT
#define SCREEN_HEIGHT 240
#endif
#ifndef SCREEN_BPP
#define SCREEN_BPP 16
#endif
#ifndef PPU_Y
#define PPU_Y 1
#endif
#ifndef PPU_X
#define PPU_X 1
#endif
#ifndef AUTOSCALE
#define AUTOSCALE 1
#endif
#ifndef AUTOSCALE_DPI
#define AUTOSCALE_DPI 1
#endif
#ifndef PATH_DEFAULT
#define PATH_DEFAULT getenv("PWD")
#endif
#ifndef PATH_DEFAULT_RIGHT
#define PATH_DEFAULT_RIGHT getenv("HOME")
#endif
#ifndef FILE_SYSTEM
#define FILE_SYSTEM "/dev/sda4"
#endif
#ifndef CMDR_KEY_UP
#define CMDR_KEY_UP SDLK_UP
#endif
#ifndef CMDR_KEY_RIGHT
#define CMDR_KEY_RIGHT SDLK_RIGHT
#endif
#ifndef CMDR_KEY_DOWN
#define CMDR_KEY_DOWN SDLK_DOWN
#endif
#ifndef CMDR_KEY_LEFT
#define CMDR_KEY_LEFT SDLK_LEFT
#endif
#ifndef CMDR_KEY_SYSTEM
#define CMDR_KEY_SYSTEM SDLK_ESCAPE
#endif
#ifndef CMDR_KEY_PAGEUP
#define CMDR_KEY_PAGEUP SDLK_PAGEUP
#endif
#ifndef CMDR_KEY_PAGEDOWN
#define CMDR_KEY_PAGEDOWN SDLK_PAGEDOWN
#endif
#ifndef CMDR_KEY_OPEN
#define CMDR_KEY_OPEN SDLK_RETURN
#endif
#ifndef CMDR_KEY_PARENT
#define CMDR_KEY_PARENT SDLK_BACKSPACE
#endif
#ifndef CMDR_KEY_OPERATION
#define CMDR_KEY_OPERATION SDLK_SPACE
#endif
#ifndef CMDR_KEY_SELECT
#define CMDR_KEY_SELECT SDLK_INSERT
#endif
#ifndef CMDR_KEY_TRANSFER
#define CMDR_KEY_TRANSFER SDLK_TAB
#endif
#ifndef CMDR_GAMEPAD_UP
#define CMDR_GAMEPAD_UP ControllerButton::UP
#endif
#ifndef CMDR_GAMEPAD_DOWN
#define CMDR_GAMEPAD_DOWN ControllerButton::DOWN
#endif
#ifndef CMDR_GAMEPAD_LEFT
#define CMDR_GAMEPAD_LEFT ControllerButton::LEFT
#endif
#ifndef CMDR_GAMEPAD_RIGHT
#define CMDR_GAMEPAD_RIGHT ControllerButton::RIGHT
#endif
#ifndef CMDR_GAMEPAD_SYSTEM
#define CMDR_GAMEPAD_SYSTEM ControllerButton::X
#endif
#ifndef CMDR_GAMEPAD_PAGEUP
#define CMDR_GAMEPAD_PAGEUP ControllerButton::LEFTSHOULDER
#endif
#ifndef CMDR_GAMEPAD_PAGEDOWN
#define CMDR_GAMEPAD_PAGEDOWN ControllerButton::RIGHTSHOULDER
#endif
#ifndef CMDR_GAMEPAD_OPEN
#define CMDR_GAMEPAD_OPEN ControllerButton::B
#endif
#ifndef CMDR_GAMEPAD_PARENT
#define CMDR_GAMEPAD_PARENT ControllerButton::A
#endif
#ifndef CMDR_GAMEPAD_OPERATION
#define CMDR_GAMEPAD_OPERATION ControllerButton::Y
#endif
#ifndef CMDR_GAMEPAD_SELECT
#define CMDR_GAMEPAD_SELECT ControllerButton::SELECT
#endif
#ifndef CMDR_GAMEPAD_TRANSFER
#define CMDR_GAMEPAD_TRANSFER ControllerButton::START
#endif
#endif // CONFIG_DEF_H_