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:
|
|
|
|
void SetKeyCodeState(KeyCode code, bool pressed) {
|
|
|
|
GetVirtualFunction<void(*)(IInputInternal*, KeyCode, bool)>(this, 83)(this, code, pressed);
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|