inputManager.h 599 B

123456789101112131415161718192021222324252627
  1. #ifndef INPUTMANAGER_H
  2. #define INPUTMANAGER_H
  3. //Headers
  4. #include"SDL.h"
  5. class InputManager{
  6. public:
  7. //Dummy constructors / Destructors
  8. //Not necessary here, but follow the same format for consistency
  9. InputManager();
  10. ~InputManager();
  11. bool startUp();
  12. void shutDown();
  13. //Processes all the SDL events that have ocurred in the given frame
  14. //For now only listens to the SDL_QUIT event that signifies the window was
  15. //closed.
  16. bool processInput();
  17. private:
  18. bool handleEvent(SDL_Event * event);
  19. };
  20. #endif