Rune Engine
Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
mouse.h
1
#pragma once
2
12
#ifndef MOUSE_H_DEFINED
13
#define MOUSE_H_DEFINED
14
15
#include <core.h>
16
#include <Math\vec2.h>
17
18
namespace
rune
{
19
20
class
RUNE_ENGINE
Mouse
21
{
22
public
:
24
enum
Button
{
26
Left = 0,
28
Right = 1,
30
Middle = 2,
32
XButton1 = 3,
34
XButton2 = 4
35
};
39
static
bool
isButtonPressed(
rune::Mouse::Button
button);
42
static
rune::Vec2
getPosition(
void
);
44
static
void
setPosition(
rune::Vec2
newPosition);
45
46
};
47
}
48
49
#endif
rune::Mouse::Button
Button
A button on the mouse that can be polled for input status.
Definition:
mouse.h:24
rune::Mouse
Interface for getting input from the mouse.
Definition:
mouse.h:21
rune::Vec2
1 x 2 vector to be used for math.
Definition:
vec2.h:20
rune
The main namespace to be used for interfacing with the engine.
Definition:
animator.h:21
RuneEngine
src
Input
mouse.h
Generated on Tue Feb 2 2021 12:53:34 for the Rune Engine with
1.8.18.