- Add visual file picker for GUI with toggle support. - Introduce `GUIConfig` class for loading GUI settings from configuration file. - Refactor window initialization to support dynamic sizing based on configuration. - Add macOS-specific handling for fullscreen behavior. - Improve header inclusion order and minor code cleanup.
35 lines
630 B
C++
35 lines
630 B
C++
/*
|
|
* TestInputHandler.h - programmable input handler for testing
|
|
*/
|
|
#ifndef KTE_TEST_INPUT_HANDLER_H
|
|
#define KTE_TEST_INPUT_HANDLER_H
|
|
|
|
#include <queue>
|
|
|
|
#include "InputHandler.h"
|
|
|
|
|
|
class TestInputHandler final : public InputHandler {
|
|
public:
|
|
TestInputHandler() = default;
|
|
|
|
~TestInputHandler() override = default;
|
|
|
|
bool Poll(MappedInput &out) override;
|
|
|
|
void QueueCommand(CommandId id, const std::string &arg = "", int count = 0);
|
|
|
|
void QueueText(const std::string &text);
|
|
|
|
|
|
[[nodiscard]] bool IsEmpty() const
|
|
{
|
|
return queue_.empty();
|
|
}
|
|
|
|
private:
|
|
std::queue<MappedInput> queue_;
|
|
};
|
|
|
|
#endif // KTE_TEST_INPUT_HANDLER_H
|