Aether3D
Game Engine
Include
MouseInput.hpp
1
#ifndef MOUSE_INPUT_H
2
#define MOUSE_INPUT_H
3
4
namespace
ae3d
5
{
6
namespace
mouseinput
7
{
8
enum
Enum
9
{
10
MOUSE_BUTTON_LEFT = 0,
11
MOUSE_BUTTON_RIGHT,
12
MOUSE_BUTTON_MIDDLE
13
};
14
}
15
}
16
18
class
MouseInput
19
{
20
public
:
21
virtual
~
MouseInput
() {}
26
virtual
void
GetPosition
(
int
& outX,
int
& outY )
const
;
27
32
virtual
void
SetPosition
(
int
x,
int
y )
const
;
33
35
virtual
void
SetRelative
(
bool
enable )
const
;
36
38
virtual
void
ShowCursor
(
bool
enable )
const
;
39
44
virtual
bool
IsDown
( ae3d::mouseinput::Enum button )
const
;
45
};
46
#endif
MouseInput
Reads mouse.
Definition:
MouseInput.hpp:18
MouseInput::SetRelative
virtual void SetRelative(bool enable) const
MouseInput::GetPosition
virtual void GetPosition(int &outX, int &outY) const
MouseInput::ShowCursor
virtual void ShowCursor(bool enable) const
MouseInput::IsDown
virtual bool IsDown(ae3d::mouseinput::Enum button) const
MouseInput::SetPosition
virtual void SetPosition(int x, int y) const
Generated on Sun Dec 13 2020 10:31:15 for Aether3D by
1.8.17