Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_System.h
| Show First 20 Lines • Show All 241 Lines • ▼ Show 20 Lines | public: | ||||
| /** | /** | ||||
| * Returns the state of a mouse button (ouside the message queue). | * Returns the state of a mouse button (ouside the message queue). | ||||
| * \param mask The button state to retrieve. | * \param mask The button state to retrieve. | ||||
| * \param isDown Button state. | * \param isDown Button state. | ||||
| * \return Indication of success. | * \return Indication of success. | ||||
| */ | */ | ||||
| GHOST_TSuccess getButtonState(GHOST_TButtonMask mask, bool& isDown) const; | GHOST_TSuccess getButtonState(GHOST_TButtonMask mask, bool& isDown) const; | ||||
| /** | |||||
| * Set which tablet API to use. Only affects Windows, other platforms have a single API. | |||||
| * \param api Enum indicating which API to use. | |||||
| */ | |||||
| void setTabletAPI(GHOST_TTabletAPI api); | |||||
| /** | |||||
| * Test if given tablet API should be used by event handling. | |||||
| */ | |||||
| bool useTabletAPI(GHOST_TTabletAPI api) const; | |||||
| #ifdef WITH_INPUT_NDOF | #ifdef WITH_INPUT_NDOF | ||||
| /*************************************************************************************** | /*************************************************************************************** | ||||
| * Access to 3D mouse. | * Access to 3D mouse. | ||||
| ***************************************************************************************/ | ***************************************************************************************/ | ||||
| /** | /** | ||||
| * Sets 3D mouse deadzone | * Sets 3D mouse deadzone | ||||
| * \param deadzone: Deadzone of the 3D mouse (both for rotation and pan) relative to full range | * \param deadzone: Deadzone of the 3D mouse (both for rotation and pan) relative to full range | ||||
| ▲ Show 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | #endif | ||||
| /** Prints all the events. */ | /** Prints all the events. */ | ||||
| #ifdef GHOST_DEBUG | #ifdef GHOST_DEBUG | ||||
| GHOST_EventPrinter *m_eventPrinter; | GHOST_EventPrinter *m_eventPrinter; | ||||
| #endif // GHOST_DEBUG | #endif // GHOST_DEBUG | ||||
| /** Settings of the display before the display went fullscreen. */ | /** Settings of the display before the display went fullscreen. */ | ||||
| GHOST_DisplaySetting m_preFullScreenSetting; | GHOST_DisplaySetting m_preFullScreenSetting; | ||||
| /** Which tablet API to use. */ | |||||
| GHOST_TTabletAPI m_tabletAPI; | |||||
| }; | }; | ||||
| inline GHOST_TimerManager *GHOST_System::getTimerManager() const | inline GHOST_TimerManager *GHOST_System::getTimerManager() const | ||||
| { | { | ||||
| return m_timerManager; | return m_timerManager; | ||||
| } | } | ||||
| inline GHOST_EventManager *GHOST_System::getEventManager() const | inline GHOST_EventManager *GHOST_System::getEventManager() const | ||||
| Show All 17 Lines | |||||