Project

General

Profile

Revision 151

added macro

View differences:

proj/Makefile
1 1
PROG=proj
2 2

  
3
SRCS= proj.c graphics.c kbc.c keyboard.c mouse.c utils.c timer.c
3
SRCS= proj.c graphics.c sprite.c kbc.c keyboard.c mouse.c utils.c timer.c
4 4

  
5 5
CPPFLAGS += -pedantic -D __LCOM_OPTIMIZED_
6 6

  
proj/proj_macros.h
2 2
#define PROJ_MACROS_H_INCLUDED
3 3

  
4 4
// WASD Movement Keys
5
#define W_MAKE_CODE     0x11    /* @brief W Make Code */
6
#define W_BREAK_CODE    0x91    /* @brief W Make Code */
7
#define A_MAKE_CODE     0x1E    /* @brief A Make Code */
8
#define A_BREAK_CODE    0x9E    /* @brief A Make Code */
9
#define S_MAKE_CODE     0x1F    /* @brief S Make Code */
10
#define S_BREAK_CODE    0x9F    /* @brief S Make Code */
11
#define D_MAKE_CODE     0x20    /* @brief D Make Code */
12
#define D_BREAK_CODE    0xA0    /* @brief D Make Code */
5
#define W_MAKE_CODE     0x11    /** @brief W Make Code */
6
#define W_BREAK_CODE    0x91    /** @brief W Make Code */
7
#define A_MAKE_CODE     0x1E    /** @brief A Make Code */
8
#define A_BREAK_CODE    0x9E    /** @brief A Make Code */
9
#define S_MAKE_CODE     0x1F    /** @brief S Make Code */
10
#define S_BREAK_CODE    0x9F    /** @brief S Make Code */
11
#define D_MAKE_CODE     0x20    /** @brief D Make Code */
12
#define D_BREAK_CODE    0xA0    /** @brief D Make Code */
13 13

  
14 14
// Extra Keys
15
#define ESC_MAKE_CODE   0x01    /* @brief ESC Make Code */
16
#define ESC_BREAK_CODE  0x81    /* @brief ESC Break Code */
15
#define ESC_MAKE_CODE   0x01    /** @brief ESC Make Code */
16
#define ESC_BREAK_CODE  0x81    /** @brief ESC Break Code */
17 17

  
18 18
// Refresh Rate
19 19
#define REFRESH_RATE    60      /** @brief Screen refresh rate */
20 20

  
21
//Graphics mode
22
#define GRAPH_MODE      DIRECT_1280_1024_888 /** @brief Graphic mode used */
23

  
21 24
#endif /* end of include guard: PROJ_MACROS_H_INCLUDED */

Also available in: Unified diff