summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/input/input_device.h
blob: 1c116e66ead05025a96f8f6d5a2f054c6883ded7 (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 "../core_config.h"

#include "keyboard_state.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