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

  • 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:
1
1
#include "GameButton.h"
2
2
#include "game_utils.h"
3
3
 
4
 
/**
5
 
 * This file, as the rest of the project is under MIT license.
6
 
 * see http://opensource.org/licenses/MIT
7
 
 *
8
 
 * Author Gustav Hartvigsson <gustav.hartvigsson _at_ gmail.com> 2014
9
 
 */
10
 
 
11
4
GameButton * game_button_new (int x, int y, int h, int w) {
12
5
  GameButton * self = malloc (sizeof(GameButton));
13
6
  fprintf (stdout, "Creating GameButton: address: %ld\n", (long) self);