Blender V2.61 - r43446
|
#include <GHOST_Buttons.h>
Public Member Functions | |
GHOST_Buttons () | |
virtual | ~GHOST_Buttons () |
virtual bool | get (GHOST_TButtonMask mask) const |
virtual void | set (GHOST_TButtonMask mask, bool down) |
virtual void | clear () |
Public Attributes | |
GHOST_TUns8 | m_ButtonLeft: 1 |
GHOST_TUns8 | m_ButtonMiddle: 1 |
GHOST_TUns8 | m_ButtonRight: 1 |
This struct stores the state of the mouse buttons. Buttons can be set using button masks.
Definition at line 45 of file GHOST_Buttons.h.
GHOST_Buttons::GHOST_Buttons | ( | ) |
GHOST_Buttons::~GHOST_Buttons | ( | ) | [virtual] |
Definition at line 78 of file GHOST_Buttons.cpp.
void GHOST_Buttons::clear | ( | ) | [virtual] |
Sets the state of all buttons to up.
Definition at line 71 of file GHOST_Buttons.cpp.
References m_ButtonLeft, m_ButtonMiddle, and m_ButtonRight.
Referenced by GHOST_SystemCocoa::getButtons(), GHOST_SystemCarbon::getButtons(), and GHOST_Buttons().
bool GHOST_Buttons::get | ( | GHOST_TButtonMask | mask | ) | const [virtual] |
Returns the state of a single button.
mask | Key button to return. |
Definition at line 43 of file GHOST_Buttons.cpp.
References GHOST_kButtonMaskLeft, GHOST_kButtonMaskMiddle, GHOST_kButtonMaskRight, m_ButtonLeft, m_ButtonMiddle, and m_ButtonRight.
Referenced by GHOST_System::getButtonState().
void GHOST_Buttons::set | ( | GHOST_TButtonMask | mask, |
bool | down | ||
) | [virtual] |
Updates the state of a single button.
mask | Button state to update. |
down | The new state of the button. |
Definition at line 57 of file GHOST_Buttons.cpp.
References GHOST_kButtonMaskLeft, GHOST_kButtonMaskMiddle, GHOST_kButtonMaskRight, m_ButtonLeft, m_ButtonMiddle, and m_ButtonRight.
Referenced by GHOST_SystemX11::getButtons(), GHOST_SystemWin32::getButtons(), GHOST_SystemSDL::getButtons(), GHOST_SystemCocoa::getButtons(), and GHOST_SystemCarbon::getButtons().
Definition at line 72 of file GHOST_Buttons.h.
Definition at line 73 of file GHOST_Buttons.h.
Definition at line 74 of file GHOST_Buttons.h.