bzr branch
http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad
1
by Gustav Hartvigsson
Initial code. |
1 |
/* gcc main.c -D_REENTRANT -I/usr/local/include/SDL2 -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lSDL2 -lpthread -Wall */
|
2 |
||
3 |
#include <SDL2/SDL.h> |
|
4 |
#include <stdbool.h> |
|
5 |
||
6 |
#include "Game.h" |
|
7 |
||
8 |
/******************************************************************************/
|
|
9 |
||
10 |
||
11 |
int main (int argc, char * argv[]) { |
|
12 |
|
|
13 |
Game * game = game_new (); |
|
14 |
|
|
15 |
game_main_loop (game); |
|
16 |
game_free (game); |
|
17 |
|
|
18 |
return 0; |
|
19 |
}
|
|
20 |