summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/Input/InputDevice.h
blob: 0ecce99808cac2933900e460278b6bb0cd108279 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef _ASURA_ENGINE_INPUT_BASE_H_
#define _ASURA_ENGINE_INPUT_BASE_H_

#include <asura-utils/Math/Vector2.hpp>
#include <asura-utils/Scripting/Portable.hpp>
#include <asura-utils/Singleton.hpp>

#include "../CoreConfig.h"

#include "KeyboardState.h"
#include "MouseState.h"
#include "JoystickState.h"

namespace_begin(AsuraEngine)
namespace_begin(Input)

class InputDevice
{
public: 

	InputDevice();
	virtual ~InputDevice();

protected: 

	virtual bool UpdateState();

	MouseState m_Mouse;
	KeyboardState m_Keyboard;
	JoystickState m_Joysticks;

private: 

	bool UpdateMousePosition();

};

//bool ConvertPositionToClientAreaCoord();

namespace_end
namespace_end

namespace AEInput = AsuraEngine::Input;

#endif