forked from jbanes/rs97-commander
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdef.h
executable file
·87 lines (83 loc) · 3.11 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#ifndef _DEF_H_
#define _DEF_H_
//~ #define INHIBIT(X) X
#define INHIBIT(X) /* X */
#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 240
#define SCREEN_BPP 16
#define SURFACE_FLAGS SDL_SWSURFACE
#define MS_PER_FRAME 33
// Panel
#define LINE_HEIGHT 15
#define NB_VISIBLE_LINES 14
#define Y_LIST 17
#define Y_HEADER 3
#define Y_FOOTER 228
#define H_FOOTER 13
// 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 "/home/retrofw"
#define PATH_DEFAULT_RIGHT "/media"
#define FILE_SYSTEM "/dev/mmcblk0p4"
#elif defined(PLATFORM_LF1000)
// Keys for Leapster Explorer
#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_OPEN SDLK_b // A
#define MYKEY_PARENT SDLK_a // B
#define MYKEY_SYSTEM SDLK_h // Y
#define MYKEY_OPERATION SDLK_p // X
#define MYKEY_PAGEUP SDLK_l // L
#define MYKEY_PAGEDOWN SDLK_r // R
#define MYKEY_SELECT SDLK_u // SELECT
#define MYKEY_TRANSFER SDLK_d // START
#define PATH_DEFAULT "/roms"
#define PATH_DEFAULT_RIGHT "/roms"
#define FILE_SYSTEM "/dev/mtdblock3"
#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 PATH_DEFAULT_RIGHT "/"
#define FILE_SYSTEM "/dev/sda4"
#endif
#endif