mirror of
https://github.com/zhenyan121/SporeBG-Conid.git
synced 2026-04-10 06:14:08 +08:00
feat: add PieceInfo display
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
#include "InputManager.h"
|
||||
|
||||
InputManager::InputManager(InputState& inputState) :
|
||||
m_currentInputState(inputState)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
SDL_AppResult InputManager::handleInputEvent(const SDL_Event* event) {
|
||||
|
||||
switch (event->type) {
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
#include "InputState.h"
|
||||
class InputManager {
|
||||
public:
|
||||
|
||||
InputManager(InputState& inputState);
|
||||
SDL_AppResult handleInputEvent(const SDL_Event* event);
|
||||
|
||||
InputState GetInputState() const;
|
||||
private:
|
||||
InputState m_currentInputState;
|
||||
InputState& m_currentInputState;
|
||||
};
|
||||
@@ -5,5 +5,6 @@ struct InputState
|
||||
std::pair<float, float> mouseCilckOn;
|
||||
bool leftMouseDown = false;
|
||||
std::pair<float, float> mouseCurrentPosition;
|
||||
std::pair<int, int> mouseCurrentLogicalPosition;
|
||||
bool isFullscreen = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user