Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef INPUT_H
- #define INPUT_H
- #include "SDL.h"
- #include "timer.h"
- #include "board.h"
- #include "menu.h"
- class Input
- {
- private:
- int CurrentMousex, CurrentMousey;
- bool IsLeftClickHeldDown;
- bool IsRightClickHeldDown;
- bool DidWeJustClickLeftClick;
- bool TurningCellsOnOrOff;
- bool ShouldWeUpdateTurningCellsOnOrOff;
- SDL_Event event;
- public:
- Input();
- void readInput(bool &quit, Timer &Time);
- void handleMouseInput(Board &BoardObject, Timer &Time, Menu &aMenuObject);
- void handleMenuInput(Menu &aMenuObject, Timer &Time);
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement