summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/Input/InputDevice.h
blob: 39f3d37472ceb89a1691b4d5bfefd0a9c31a07d6 (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
#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"

namespace_begin(AsuraEngine)
namespace_begin(Input)

/// ͬƽ̨̳ಢʵhandleӿ
ASURA_ABSTRACT class InputDevice : public Singleton<InputDevice>
{
protected:

	void OnKeyDown(int key);
	void OnKeyUp(int key);

	void OnMouseMove(const AEMath::Vector2f& position);

	void OnMouseButtonDown(int key);
	void OnMouseButtonUp(int key);

	void OnMouseWheel();

	void OnInputChar();

};

namespace_end
namespace_end

namespace AEInput = AsuraEngine::Input;

#endif