/+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 GameButton.h

  • Committer: Gustav Hartvigsson
  • Date: 2014-01-11 23:37:04 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140111233704-5wvmitumszjjypy4
* Ignore ./html/

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
 
 
21
17
typedef struct GameButton {
22
18
  SDL_Rect base; //this will behave like an SDL_Rect when cast to an SDL_Rect.
23
19
  bool fill;
35
31
  
36
32
  BtnCallback stop_hover;
37
33
  void * stop_hover_data;
38
 
} GameButton;
 
34
} GameButtan;
39
35
 
40
36
typedef void (* BtnCallback)(GameButton * self, void * data);
41
37