Cromon

MouseState.h

Aug 12th, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1.     class MouseState
  2.     {
  3.         bool mMouseButtons[256];
  4.  
  5.     public:
  6.         MouseState();
  7.  
  8.         void setButtonState(uint8 button, bool state);
  9.         bool getButtonState(uint8 button) const;
  10.         bool getButtonState(MouseButton button) const { return getButtonState((uint8)button); }
  11.     };
Advertisement
Add Comment
Please, Sign In to add comment