- 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
26 lines
478 B
C++
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;};
|
|
};
|
|
} |