1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2006 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
39 #ifndef _OSGLINUX2AXISEVENTINTERFACE_H_
40 #define _OSGLINUX2AXISEVENTINTERFACE_H_
45 #include "OSGMouseDataDeviceInterface.h"
49 class OSG_CONTRIBCSM_DLLMAPPING Linux2AxisEventInterface
:
50 public MouseDataDeviceInterface
53 /*========================== PUBLIC =================================*/
57 OSG_GEN_INTERNAL_MEMOBJPTR(Linux2AxisEventInterface
);
59 /*---------------------------------------------------------------------*/
60 /*! \name Reference Counting */
63 static ObjTransitPtr
get (Char8
*szName
, bool bGlobal
);
64 static Linux2AxisEventInterface
*find(Char8
*szName
);
66 /*---------------------------------------------------------------------*/
67 /*! \name Reference Counting */
70 virtual bool start (void);
71 virtual void shutdown(void);
74 /*---------------------------------------------------------------------*/
75 /*! \name Constructors */
78 virtual void setOptions(InterfaceOptions
*pOptions
);
81 /*========================= PROTECTED ===============================*/
85 typedef MouseDataDeviceInterface Inherited
;
87 static MPThreadType _type
;
98 /*---------------------------------------------------------------------*/
99 /*! \name Reference Counting */
102 static BaseThread
*create(const Char8
*szName
,
107 /*---------------------------------------------------------------------*/
108 /*! \name Constructors */
111 Linux2AxisEventInterface(const Char8
*szName
, UInt32 uiId
, bool bGlobal
);
114 /*---------------------------------------------------------------------*/
115 /*! \name Destructor */
118 virtual ~Linux2AxisEventInterface(void);
121 /*---------------------------------------------------------------------*/
122 /*! \name Destructor */
125 virtual void workProc(void);
128 /*---------------------------------------------------------------------*/
129 /*! \name Constructors */
132 void getRawData(void);
135 /*========================== PRIVATE ================================*/
139 /*!\brief prohibit default function (move to 'public' if needed) */
140 Linux2AxisEventInterface(const Linux2AxisEventInterface
&source
);
141 void operator =(const Linux2AxisEventInterface
&source
);
144 OSG_GEN_MEMOBJPTR(Linux2AxisEventInterface
);
148 #include "OSGLinux2AxisEventInterface.inl"
150 #endif //_OSGLINUX2AXISEVENTINTERFACE_H_