diff options
Diffstat (limited to 'intern/ghost/intern/GHOST_System.h')
-rw-r--r-- | intern/ghost/intern/GHOST_System.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_System.h b/intern/ghost/intern/GHOST_System.h index d2e3377f6ce..f8c930a4824 100644 --- a/intern/ghost/intern/GHOST_System.h +++ b/intern/ghost/intern/GHOST_System.h @@ -49,6 +49,7 @@ class GHOST_TimerManager; class GHOST_Window; class GHOST_WindowManager; class GHOST_NDOFManager; +class GHOST_TouchManager; /** * Implementation of platform independent functionality of the GHOST_ISystem @@ -229,6 +230,25 @@ public: * \return Indication of success. */ virtual GHOST_TSuccess getButtonState(GHOST_TButtonMask mask, bool& isDown) const; + + /*************************************************************************************** + * Hardware Sensor operations + ***************************************************************************************/ + + /** + * Returns the availability of sensor. + * @param type The type of sensor. + * @return Indication of availability. + */ + virtual GHOST_TSuccess getSensorsAvailability(GHOST_TSensorTypes type); + + /** + * Enables or disables specific sensor. + * @param type The type of sensor. + * @param enable 1 = enable, 0 = disable + * @return Indication of success. + */ + virtual GHOST_TSuccess setSensorsState(GHOST_TSensorTypes type, int enable); /*************************************************************************************** * Other (internal) functionality. @@ -268,6 +288,14 @@ public: virtual inline GHOST_NDOFManager *getNDOFManager() const; #endif +#ifdef WITH_INPUT_TOUCH + /** + * Returns a pointer to the touch manager. + * @return A pointer to touch manager. + */ + virtual inline GHOST_TouchManager *getTouchManager() const; +#endif + /** * Returns the state of all modifier keys. * \param keys The state of all modifier keys (true == pressed). @@ -342,6 +370,11 @@ protected: /** The N-degree of freedom device manager */ GHOST_NDOFManager *m_ndofManager; #endif + +#ifdef WITH_INPUT_TOUCH + /** The touch device manager */ + GHOST_TouchManager *m_touchManager; +#endif /** Prints all the events. */ #ifdef GHOST_DEBUG @@ -374,5 +407,12 @@ inline GHOST_NDOFManager *GHOST_System::getNDOFManager() const } #endif +#ifdef WITH_INPUT_TOUCH +inline GHOST_TouchManager *GHOST_System::getTouchManager() const +{ + return m_touchManager; +} +#endif + #endif // __GHOST_SYSTEM_H__ |