legatt 3f965b2393 C++20 migration and Client
- Migrated to C++20 modules
- Worker and ThreadedWorker base classes for interthread systems
- Client class for server transport and converting game data models to render data (views)
- Update provinces render data from Client
- Renderer handles commands now
2026-02-10 04:12:04 +03:00

26 lines
478 B
C++

module;
#include <functional>
export module Input;
export namespace ee_engine
{
struct InputHandlers
{
std::function<void(float dx, float dy)> zooming;
std::function<void(float dx, float dy)> mapScroll;
};
class IInput
{
public:
virtual ~IInput() {};
virtual void Poll() = 0;
protected:
InputHandlers handlers;
explicit IInput(const InputHandlers &handlers) {this->handlers = handlers;};
};
}