/+junk/c_sdl_joypad_ducktape

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad_ducktape

« back to all changes in this revision

Viewing changes to Game.h

  • Committer: Gustav Hartvigsson
  • Date: 2013-09-29 21:11:58 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20130929211158-9z71h0uymetjelsz
fixed the callback stuff..

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
#include "MousePointer.h"
8
8
#include "GameButton.h"
9
 
//#include "JSParser.h"
10
 
#include "game_utils.h"
11
 
 
12
 
/**
13
 
 * This file, as the rest of the project is under MIT license.
14
 
 * see http://opensource.org/licenses/MIT
15
 
 *
16
 
 * Author Gustav Hartvigsson <gustav.hartvigsson _at_ gmail.com> 2014
17
 
 */
18
 
 
19
 
#define J_SCALE_FACTOR 5000 //TODO: change tho momement to time-based
 
9
 
 
10
 
 
11
#define J_SCALE_FACTOR 5000
20
12
 
21
13
 
22
14
 
23
15
void quit (int rc);
24
16
 
25
 
typedef struct Game {
 
17
typedef struct _Game Game;
 
18
 
 
19
struct _Game {
26
20
  SDL_Event event;
27
21
  SDL_Point mouse_delta;
28
22
  bool mouse_pressed;
34
28
  SDL_GameController * game_controller;
35
29
  MousePointer * mouse;
36
30
  GameButton * button;
37
 
} Game;
 
31
};
38
32
 
39
33
Game * game_new ();
40
34
void game_process_events (Game * self);