Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_System.cpp
| Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
| #endif | #endif | ||||
| GHOST_System::GHOST_System() | GHOST_System::GHOST_System() | ||||
| : m_nativePixel(false), | : m_nativePixel(false), | ||||
| m_windowFocus(true), | m_windowFocus(true), | ||||
| m_displayManager(NULL), | m_displayManager(NULL), | ||||
| m_timerManager(NULL), | m_timerManager(NULL), | ||||
| m_windowManager(NULL), | m_windowManager(NULL), | ||||
| m_eventManager(NULL) | m_eventManager(NULL), | ||||
| #ifdef WITH_INPUT_NDOF | #ifdef WITH_INPUT_NDOF | ||||
| , m_ndofManager(0) | m_ndofManager(0), | ||||
| #endif | #endif | ||||
| m_tabletAPI(GHOST_kTabletAutomatic) | |||||
| { | { | ||||
| } | } | ||||
| GHOST_System::~GHOST_System() | GHOST_System::~GHOST_System() | ||||
| { | { | ||||
| exit(); | exit(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 225 Lines • ▼ Show 20 Lines | GHOST_TSuccess GHOST_System::getButtonState(GHOST_TButtonMask mask, bool& isDown) const | ||||
| GHOST_TSuccess success = getButtons(buttons); | GHOST_TSuccess success = getButtons(buttons); | ||||
| if (success) { | if (success) { | ||||
| // Isolate the state of the mouse button requested | // Isolate the state of the mouse button requested | ||||
| isDown = buttons.get(mask); | isDown = buttons.get(mask); | ||||
| } | } | ||||
| return success; | return success; | ||||
| } | } | ||||
| void GHOST_System::setTabletAPI(GHOST_TTabletAPI api) | |||||
| { | |||||
| m_tabletAPI = api; | |||||
| } | |||||
| bool GHOST_System::useTabletAPI(GHOST_TTabletAPI api) const | |||||
| { | |||||
| return (m_tabletAPI == GHOST_kTabletAutomatic || m_tabletAPI == api); | |||||
| } | |||||
| #ifdef WITH_INPUT_NDOF | #ifdef WITH_INPUT_NDOF | ||||
| void GHOST_System::setNDOFDeadZone(float deadzone) | void GHOST_System::setNDOFDeadZone(float deadzone) | ||||
| { | { | ||||
| if (this->m_ndofManager) { | if (this->m_ndofManager) { | ||||
| this->m_ndofManager->setDeadZone(deadzone); | this->m_ndofManager->setDeadZone(deadzone); | ||||
| } | } | ||||
| } | } | ||||
| #endif | #endif | ||||
| ▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines | |||||