Files
kte/TestInputHandler.h
Kyle Isom e4cd4877cc Introduce file picker and GUI configuration with enhancements.
- 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.
2025-11-30 18:35:12 -08:00

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