/+junk/c_sdl_joypad

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad
1 by Gustav Hartvigsson
Initial code.
1
#ifndef __H_MOUSE_POINTER__
2
#define __H_MOUSE_POINTER__
3
7 by Gustav Hartvigsson
* Added licensing information to the files.
4
/**
5
 * This file, as the rest of the project is under MIT license.
6
 * see http://opensource.org/licenses/MIT
7
 *
8 by Gustav Hartvigsson
* added and changed little in the files Lincening information.
8
 * Author Gustav Hartvigsson <gustav.hartvigsson _at_ gmail.com> 2014
7 by Gustav Hartvigsson
* Added licensing information to the files.
9
 */
10
1 by Gustav Hartvigsson
Initial code.
11
#include <SDL2/SDL.h>
12
#include <stdbool.h>
13
14
typedef struct _MousePointer MousePointer;
15
16
struct _MousePointer {
17
  SDL_Point possision; /* True posision */
18
  bool pressed;
19
  SDL_Color box_colour;
20
  SDL_Rect * draw_rect;
21
  SDL_Rect * bounding_box;
22
  SDL_Texture * image;
23
};
24
25
MousePointer * mouse_pointer_new (int  b_box_h, int b_box_w);
26
void mouse_pointer_move (MousePointer * self, int delta_x, int delta_y);
27
void mouse_pointer_move_to (MousePointer * self, int x, int y);
28
void mouse_pointer_draw (MousePointer * self, SDL_Renderer * renderer);
29
void mouse_pointer_free (MousePointer * self);
30
void mouse_pointer_force_pos (MousePointer * self);
31
32
#endif