-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathInput.h
53 lines (38 loc) · 950 Bytes
/
Input.h
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
46
47
48
49
50
51
52
53
#pragma once
#include <Windows.h>
// See Input.cpp for usage details
namespace Input
{
void Initialize(HWND windowHandle);
void ShutDown();
void Update();
void EndOfFrame();
int GetMouseX();
int GetMouseY();
int GetMouseXDelta();
int GetMouseYDelta();
void ProcessRawMouseInput(LPARAM input);
int GetRawMouseXDelta();
int GetRawMouseYDelta();
float GetMouseWheel();
void SetWheelDelta(float delta);
void SetKeyboardCapture(bool captured);
void SetMouseCapture(bool captured);
bool KeyDown(int key);
bool KeyUp(int key);
bool KeyPress(int key);
bool KeyRelease(int key);
bool GetKeyArray(bool* keyArray, int size = 256);
bool MouseLeftDown();
bool MouseRightDown();
bool MouseMiddleDown();
bool MouseLeftUp();
bool MouseRightUp();
bool MouseMiddleUp();
bool MouseLeftPress();
bool MouseLeftRelease();
bool MouseRightPress();
bool MouseRightRelease();
bool MouseMiddlePress();
bool MouseMiddleRelease();
}