diff options
Diffstat (limited to 'intern/ghost/intern/GHOST_Buttons.h')
-rw-r--r-- | intern/ghost/intern/GHOST_Buttons.h | 51 |
1 files changed, 25 insertions, 26 deletions
diff --git a/intern/ghost/intern/GHOST_Buttons.h b/intern/ghost/intern/GHOST_Buttons.h index 0c6c5f89323..0b824739950 100644 --- a/intern/ghost/intern/GHOST_Buttons.h +++ b/intern/ghost/intern/GHOST_Buttons.h @@ -27,41 +27,40 @@ #include "GHOST_Types.h" - /** * This struct stores the state of the mouse buttons. * Buttons can be set using button masks. */ struct GHOST_Buttons { - /** - * Constructor. - */ - GHOST_Buttons(); + /** + * Constructor. + */ + GHOST_Buttons(); - ~GHOST_Buttons(); + ~GHOST_Buttons(); - /** - * Returns the state of a single button. - * \param mask Key button to return. - * \return The state of the button (pressed == true). - */ - bool get(GHOST_TButtonMask mask) const; + /** + * Returns the state of a single button. + * \param mask Key button to return. + * \return The state of the button (pressed == true). + */ + bool get(GHOST_TButtonMask mask) const; - /** - * Updates the state of a single button. - * \param mask Button state to update. - * \param down The new state of the button. - */ - void set(GHOST_TButtonMask mask, bool down); + /** + * Updates the state of a single button. + * \param mask Button state to update. + * \param down The new state of the button. + */ + void set(GHOST_TButtonMask mask, bool down); - /** - * Sets the state of all buttons to up. - */ - void clear(); + /** + * Sets the state of all buttons to up. + */ + void clear(); - GHOST_TUns8 m_ButtonLeft : 1; - GHOST_TUns8 m_ButtonMiddle : 1; - GHOST_TUns8 m_ButtonRight : 1; + GHOST_TUns8 m_ButtonLeft : 1; + GHOST_TUns8 m_ButtonMiddle : 1; + GHOST_TUns8 m_ButtonRight : 1; }; -#endif // __GHOST_BUTTONS_H__ +#endif // __GHOST_BUTTONS_H__ |