blob: 2f5b00bf4faab84a3adcfb5c871173d3619feee2 (
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
|
#ifndef ENGINE_CLIENT_INPUT_H
#define ENGINE_CLIENT_INPUT_H
class CInput : public IEngineInput
{
IEngineGraphics *m_pGraphics;
int m_InputGrabbed;
int64 m_LastRelease;
int64 m_ReleaseDelta;
void AddEvent(int Unicode, int Key, int Flags);
IEngineGraphics *Graphics() { return m_pGraphics; }
public:
CInput();
virtual void Init();
virtual void MouseRelative(float *x, float *y);
virtual void MouseModeAbsolute();
virtual void MouseModeRelative();
virtual int MouseDoubleClick();
void ClearKeyStates();
int KeyState(int Key);
int ButtonPressed(int Button) { return m_aInputState[m_InputCurrent][Button]; }
virtual void Update();
};
#endif
|