2016-12-19 12:55:09 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
typedef ButtonCode_t KeyCode;
|
|
|
|
typedef ButtonCode_t MouseCode;
|
|
|
|
|
|
|
|
enum MouseCodeState_t {
|
|
|
|
BUTTON_RELEASED = 0,
|
|
|
|
BUTTON_PRESSED,
|
|
|
|
BUTTON_DOUBLECLICKED
|
|
|
|
};
|
|
|
|
|
|
|
|
class IInputInternal {
|
|
|
|
public:
|
2016-12-20 15:39:21 -05:00
|
|
|
void SetKeyCodeState(KeyCode code, bool down) {
|
|
|
|
GetVirtualFunction<void(*)(IInputInternal*, KeyCode, bool)>(this, 83)(this, code, down);
|
2016-12-19 12:55:09 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
void SetMouseCodeState(MouseCode code, MouseCodeState_t state) {
|
|
|
|
GetVirtualFunction<void(*)(IInputInternal*, MouseCode, MouseCodeState_t)>(this, 84)(this, code, state);
|
|
|
|
}
|
2016-12-20 15:09:50 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
extern IInputInternal* inputinternal;
|