/+junk/c_sdl_joypad

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

« back to all changes in this revision

Viewing changes to src/GameButton.h

  • Committer: Gustav Hartvigsson
  • Date: 2014-01-11 23:53:51 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140111235351-esn2xhqjg2c6ir9g
* moved the files to ./src/
* fixed a few problems useing some haxx.
* Changed Makefile to take into account the file move and made it better.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
#include "MousePointer.h"
16
16
 
 
17
typedef struct GameButton GameButton; // hack to make the callback work...
 
18
 
 
19
typedef void (* BtnCallback)(GameButton * self, void * data);
 
20
 
17
21
typedef struct GameButton {
18
22
  SDL_Rect base; //this will behave like an SDL_Rect when cast to an SDL_Rect.
19
23
  bool fill;
31
35
  
32
36
  BtnCallback stop_hover;
33
37
  void * stop_hover_data;
34
 
} GameButtan;
 
38
} GameButton;
35
39
 
36
40
typedef void (* BtnCallback)(GameButton * self, void * data);
37
41