/+junk/c_sdl_joypad

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