69e7f8e25f00846cc4137be76d0551191400e972
[blender.git] / intern / ghost / intern / GHOST_NDOFManager.h
1
2 #ifndef _GHOST_NDOFMANAGER_H_
3 #define _GHOST_NDOFMANAGER_H_
4
5 #include "GHOST_System.h"
6 #include "GHOST_IWindow.h"
7
8
9
10 class GHOST_NDOFManager
11 {
12 public:
13         /**
14          * Constructor.
15          */
16         GHOST_NDOFManager();
17
18         /**
19          * Destructor.
20          */
21         virtual ~GHOST_NDOFManager();
22
23     void deviceOpen(GHOST_IWindow* window,
24         GHOST_NDOFLibraryInit_fp setNdofLibraryInit, 
25         GHOST_NDOFLibraryShutdown_fp setNdofLibraryShutdown,
26         GHOST_NDOFDeviceOpen_fp setNdofDeviceOpen,
27         GHOST_NDOFEventHandler_fp setNdofEventHandler);
28
29     bool available();
30
31     /* to do: abstract for Linux, MacOS, etc. */
32     GHOST_TEventNDOFData* handle(unsigned int message, unsigned int* wparam, unsigned long* lparam);
33
34 protected:
35     void* m_DeviceHandle;
36 };
37
38
39 #endif