#include #include #include struct Controller { SDL_GameController* controller; std::string name; std::map buttons; Sint16 leftStickX = 0; Sint16 leftStickY = 0; Sint16 rightStickX = 0; Sint16 rightStickY = 0; Sint16 leftTrigger = 0; Sint16 rightTrigger = 0; }; struct Mouse { int x; int y; int wheel; std::map buttons; }; class Input { private: SDL_Event event; public: bool exit; std::map controllers; std::map activeKeys; Mouse mouse; Input(); void update(); };