merged 29285:30707 from trunk
[blender.git] / intern / ghost / intern / GHOST_System.h
index a18670738fed9b880d7073a2396e5b859f2eb806..0f140a66d721b58ce734c5a8df58985a0d72343c 100644 (file)
@@ -39,6 +39,7 @@
 #include "GHOST_Buttons.h"
 #include "GHOST_ModifierKeys.h"
 #include "GHOST_EventManager.h"
+
 #ifdef GHOST_DEBUG
 #include "GHOST_EventPrinter.h"
 #endif // GHOST_DEBUG
@@ -183,26 +184,6 @@ public:
        virtual GHOST_TSuccess addEventConsumer(GHOST_IEventConsumer* consumer);
 
 
-
-       /***************************************************************************************
-        ** N-degree of freedom devcice management functionality
-        ***************************************************************************************/
-
-       /** Inherited from GHOST_ISystem
-     *  Opens the N-degree of freedom device manager
-        * return 0 if device found, 1 otherwise
-     */
-    virtual int openNDOF(GHOST_IWindow* w,        
-        GHOST_NDOFLibraryInit_fp setNdofLibraryInit, 
-        GHOST_NDOFLibraryShutdown_fp setNdofLibraryShutdown,
-        GHOST_NDOFDeviceOpen_fp setNdofDeviceOpen);
-        
-// original patch only        
-//        GHOST_NDOFEventHandler_fp setNdofEventHandler);
-
-
-
-
        /***************************************************************************************
         ** Cursor management functionality
         ***************************************************************************************/
@@ -281,6 +262,12 @@ public:
         * @return                      Indication of success.
         */
        virtual GHOST_TSuccess getButtons(GHOST_Buttons& buttons) const = 0;
+       
+       /**
+        * Requests input at a certain fidelity. Certain tools want very smooth input, others don't care.
+        * @param hint          Desired fidelity of mouse and pen events.
+        */
+       void setInputFidelity(InputFidelity hint);
 
        /**
         * Returns the selection buffer
@@ -359,6 +346,8 @@ protected:
 
        /** Settings of the display before the display went fullscreen. */
        GHOST_DisplaySetting m_preFullScreenSetting;
+       
+       InputFidelity m_input_fidelity_hint;
 };
 
 inline GHOST_TimerManager* GHOST_System::getTimerManager() const