-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdef.h
68 lines (64 loc) · 2.25 KB
/
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
#ifndef _DEF_H_
#define _DEF_H_
//~ #define INHIBIT(X) X
#define INHIBIT(X) /* X */
#define SCREEN_WIDTH 480
#define SCREEN_HEIGHT 272
#define SCREEN_BPP 16
#define SURFACE_FLAGS SDL_SWSURFACE
#define MS_PER_FRAME 33
// Panel
#define LINE_HEIGHT 15
#define NB_VISIBLE_LINES 16
#define Y_LIST 19
#define Y_HEADER 3
#define Y_FOOTER 260
#define H_FOOTER 16
// Dialogs
#define DIALOG_BORDER 2
#define DIALOG_MARGIN 8
// Colors
#define COLOR_KEY 255,0,255
#define COLOR_TEXT_NORMAL 70,27,10
#define COLOR_TEXT_TITLE 233,229,227
#define COLOR_TEXT_DIR 75,70,164
#define COLOR_TEXT_SELECTED 255,0,0
#define COLOR_CURSOR_1 232,152,80
#define COLOR_CURSOR_2 232,201,173
#define COLOR_BG_1 255,255,255
#define COLOR_BG_2 232,228,224
#define COLOR_BORDER 102,85,74
#ifdef PLATFORM_DINGOO
// Keys for Dingoo
#define MYKEY_UP SDLK_UP // Up
#define MYKEY_RIGHT SDLK_RIGHT // Right
#define MYKEY_DOWN SDLK_DOWN // Down
#define MYKEY_LEFT SDLK_LEFT // Left
#define MYKEY_SYSTEM SDLK_LSHIFT // Y
#define MYKEY_PAGEUP SDLK_TAB // L
#define MYKEY_PAGEDOWN SDLK_BACKSPACE // R
#define MYKEY_OPEN SDLK_LCTRL // A
#define MYKEY_PARENT SDLK_LALT // B
#define MYKEY_OPERATION SDLK_SPACE // X
#define MYKEY_SELECT SDLK_ESCAPE // SELECT
#define MYKEY_TRANSFER SDLK_RETURN // START
#define PATH_DEFAULT "/boot/local"
#define FILE_SYSTEM "/dev/mmcblk0p1"
#else
// Keys for PC keyboard
#define MYKEY_UP SDLK_UP
#define MYKEY_RIGHT SDLK_RIGHT
#define MYKEY_DOWN SDLK_DOWN
#define MYKEY_LEFT SDLK_LEFT
#define MYKEY_SYSTEM SDLK_q
#define MYKEY_PAGEUP SDLK_PAGEUP
#define MYKEY_PAGEDOWN SDLK_PAGEDOWN
#define MYKEY_OPEN SDLK_RETURN
#define MYKEY_PARENT SDLK_BACKSPACE
#define MYKEY_OPERATION SDLK_a
#define MYKEY_SELECT SDLK_INSERT
#define MYKEY_TRANSFER SDLK_w
#define PATH_DEFAULT "/"
#define FILE_SYSTEM "/dev/sda4"
#endif
#endif