feat: add PieceInfo display

This commit is contained in:
2026-02-05 11:08:07 +08:00
parent 38c6c7474d
commit dd8b57c306
12 changed files with 78 additions and 4 deletions

View File

@@ -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) {

View File

@@ -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;
};

View File

@@ -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;
};