diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -23,12 +23,23 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |||
23 | WITH REGARD TO THIS SOFTWARE. | 23 | WITH REGARD TO THIS SOFTWARE. |
24 | */ | 24 | */ |
25 | 25 | ||
26 | // | ||
27 | // Config parameters. | ||
28 | // | ||
29 | #ifndef TEXT_LAYER | ||
30 | #define TEXT_LAYER ppu.fg | ||
31 | #endif | ||
32 | |||
33 | #ifndef DEFAULT_CONTROL | ||
34 | #define DEFAULT_CONTROL CONTROL_CONTROLLER | ||
35 | #endif | ||
36 | |||
26 | typedef enum { | 37 | typedef enum { |
27 | CONTROL_CONTROLLER, | 38 | CONTROL_CONTROLLER, |
28 | CONTROL_MOUSE, | 39 | CONTROL_MOUSE, |
29 | } ControlMethod; | 40 | } ControlMethod; |
30 | 41 | ||
31 | static ControlMethod control_method = CONTROL_CONTROLLER; | 42 | static ControlMethod control_method = DEFAULT_CONTROL; |
32 | 43 | ||
33 | #define MOUSE_DELTA 1 | 44 | #define MOUSE_DELTA 1 |
34 | typedef struct Mouse { | 45 | typedef struct Mouse { |
@@ -280,7 +291,7 @@ int main(void) { | |||
280 | init_uxn(&u); | 291 | init_uxn(&u); |
281 | 292 | ||
282 | // Initialize text engine. | 293 | // Initialize text engine. |
283 | txt_init(1, ppu.fg); | 294 | txt_init(1, TEXT_LAYER); |
284 | txt_position(0,0); | 295 | txt_position(0,0); |
285 | 296 | ||
286 | // Main loop. | 297 | // Main loop. |