Advertisement
Suby

input.h

Jun 1st, 2012
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. #ifndef INPUT_H
  2. #define INPUT_H
  3.  
  4. #include "SDL.h"
  5. #include "timer.h"
  6. #include "board.h"
  7. #include "menu.h"
  8.  
  9. class Input
  10. {
  11. private:
  12.     int CurrentMousex, CurrentMousey;
  13.     bool IsLeftClickHeldDown;
  14.     bool IsRightClickHeldDown;
  15.     bool DidWeJustClickLeftClick;
  16.  
  17.     bool TurningCellsOnOrOff;
  18.     bool ShouldWeUpdateTurningCellsOnOrOff;
  19.  
  20.     SDL_Event event;
  21.  
  22. public:
  23.     Input();
  24.     void readInput(bool &quit, Timer &Time);
  25.     void handleMouseInput(Board &BoardObject, Timer &Time, Menu &aMenuObject);
  26.     void handleMenuInput(Menu &aMenuObject, Timer &Time);
  27. };
  28. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement