aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Input/je_mouse.cpp
blob: 476b1a2482271afde32606ef0fb89054fc7c79e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "../core/je_configuration.h"
#if defined(jin_input)    

#include "SDL.h"

#include "je_mouse.h"

namespace JinEngine
{
	namespace Input
	{

		void Mouse::getState(int* x, int* y)
		{
		#ifdef jin_input == jin_input_sdl
			SDL_GetMouseState(x, y);
		#endif
		}

		void Mouse::setVisible(bool visible)
		{
			SDL_ShowCursor(visible ? SDL_ENABLE : SDL_DISABLE);
		}

	} // namespace Input
} // namespace JinEngine

#endif // defined(jin_input)