From 0c391fdbce5a079cf03e483eb6174dd47806163d Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 7 Aug 2019 21:08:47 +0800 Subject: *misc --- source/Asura.Editor/System/Input.h | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) (limited to 'source/Asura.Editor/System/Input.h') diff --git a/source/Asura.Editor/System/Input.h b/source/Asura.Editor/System/Input.h index 682e69f..9401981 100644 --- a/source/Asura.Editor/System/Input.h +++ b/source/Asura.Editor/System/Input.h @@ -3,42 +3,13 @@ #include -#include -#include +#include +#include #include namespace_begin(AsuraEditor) -// Win32 input entry -class Input : public AEInput::InputDevice -{ -public: - Input(); - ~Input(); - - bool Open(HWND window); - void Close(void); - - bool GetJoystickNames(std::vector &names); - - bool Activate(bool active); - bool ToggleFullscreen(bool fullscreen, HWND window); - - bool Process(bool discard); - LRESULT OnKey(HWND window, UINT message, WPARAM wParam, LPARAM lParam); - LRESULT OnInput(HWND window, UINT message, WPARAM wParam, LPARAM lParam); - LRESULT OnDeviceChange(LPCWSTR name, bool add); - - static bool ConvertPositionToClientAreaCoord(HWND activeWindow, POINT position, AEMath::Vector2f& newPos); - -private: - - bool UpdateState(); - -}; - -extern Input g_Input; namespace_end -- cgit v1.1-26-g67d0