root / proj / include / proj_macros.h @ 198
History | View | Annotate | Download (1.3 KB)
1 | 148 | up20180655 | #ifndef PROJ_MACROS_H_INCLUDED
|
---|---|---|---|
2 | #define PROJ_MACROS_H_INCLUDED
|
||
3 | |||
4 | 179 | up20180642 | #include "graph_macros.h" |
5 | |||
6 | 148 | up20180655 | // WASD Movement Keys
|
7 | 151 | up20180642 | #define W_MAKE_CODE 0x11 /** @brief W Make Code */ |
8 | 167 | up20180655 | #define W_BREAK_CODE 0x91 /** @brief W Break Code */ |
9 | 151 | up20180642 | #define A_MAKE_CODE 0x1E /** @brief A Make Code */ |
10 | 167 | up20180655 | #define A_BREAK_CODE 0x9E /** @brief A Break Code */ |
11 | 151 | up20180642 | #define S_MAKE_CODE 0x1F /** @brief S Make Code */ |
12 | 167 | up20180655 | #define S_BREAK_CODE 0x9F /** @brief S Break Code */ |
13 | 151 | up20180642 | #define D_MAKE_CODE 0x20 /** @brief D Make Code */ |
14 | 167 | up20180655 | #define D_BREAK_CODE 0xA0 /** @brief D Break Code */ |
15 | 148 | up20180655 | |
16 | 167 | up20180655 | // Movement Directions
|
17 | #define UP -1 /** @brief Moving to the top side of screen */ |
||
18 | #define DOWN 1 /** @brief Moving to the bottom side of screen */ |
||
19 | #define LEFT -1 /** @brief Moving to the left side of screen */ |
||
20 | #define RIGHT 1 /** @brief Moving to the right side of screen */ |
||
21 | #define REST 0 /** @brief Not moving */ |
||
22 | |||
23 | 148 | up20180655 | // Extra Keys
|
24 | 151 | up20180642 | #define ESC_MAKE_CODE 0x01 /** @brief ESC Make Code */ |
25 | #define ESC_BREAK_CODE 0x81 /** @brief ESC Break Code */ |
||
26 | 148 | up20180655 | |
27 | 149 | up20180655 | // Refresh Rate
|
28 | #define REFRESH_RATE 60 /** @brief Screen refresh rate */ |
||
29 | |||
30 | 151 | up20180642 | //Graphics mode
|
31 | 160 | up20180642 | #define GRAPH_MODE DIRECT_1280_1024_888 /** @brief Graphic mode used */ |
32 | 151 | up20180642 | |
33 | 148 | up20180655 | #endif /* end of include guard: PROJ_MACROS_H_INCLUDED */ |