Suby

input

May 25th, 2012
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 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.  
  8. class Input
  9. {
  10. private:
  11.     int CurrentMousex, CurrentMousey;
  12.     bool IsLeftClickHeldDown;
  13.     bool IsRightClickHeldDown;
  14.     bool TurningCellsOnOrOff;
  15.     bool ShouldWeUpdateTurningCellsOnOrOff;
  16.  
  17.     SDL_Event event;
  18.  
  19. public:
  20.     Input();
  21.     void readInput(bool &quit, Timer &Time);
  22.     void handleMouseInput(Board &BoardObject, Timer Time);
  23. };
  24. #endif
Advertisement
Add Comment
Please, Sign In to add comment