diff options
author | chai <chaifix@163.com> | 2019-08-07 21:08:47 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-07 21:08:47 +0800 |
commit | 0c391fdbce5a079cf03e483eb6174dd47806163d (patch) | |
tree | b06cd7a9d0ae0d9bb9e82f3dcb786dfce11f8628 /source/Asura.Editor/System/Input.h | |
parent | 9686368e58e25cbd6dc37d686bdd2be3f80486d6 (diff) |
*misc
Diffstat (limited to 'source/Asura.Editor/System/Input.h')
-rw-r--r-- | source/Asura.Editor/System/Input.h | 33 |
1 files changed, 2 insertions, 31 deletions
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 <windows.h> -#include <asura-utils/Classes.h> -#include <asura-utils/Math/Vector2.hpp> +#include <asura-base/Classes.h> +#include <asura-base/Math/Vector2.hpp> #include <asura-core/Input/InputDevice.h> 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<std::string> &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 |