summaryrefslogtreecommitdiffhomepage
path: root/src/rodeo_input.c
blob: 3a40b77d0da0e927fb2bab2df66f00c5df946a01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

// public internal
#include "rodeo_types.h"
#include "rodeo.h"

// external
#include "SDL/SDL.h"

int32_t
rodeo_input_mouse_x_get(void)
{
	int32_t x, y;
	SDL_GetMouseState(&x, &y);
	return x;
}

int32_t
rodeo_input_mouse_y_get(void)
{
	int32_t x, y;
	SDL_GetMouseState(&x, &y);
	return y;
}