Add IInputSystem and IInputInternal interfaces.

Signed-off-by: aixxe <me@aixxe.net>
This commit is contained in:
aixxe
2016-12-19 17:55:09 +00:00
parent 5d3e60ddd3
commit f8b4871d7e
3 changed files with 157 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
#pragma once
enum ButtonCode_t;
class IInputSystem {
public:
bool IsButtonDown(ButtonCode_t button) {
return GetVirtualFunction<bool(*)(void*, ButtonCode_t)>(this, 11)(this, button);
}
};