20
20
* ***** END GPL LICENSE BLOCK *****
24
#ifndef _GHOST_EVENT_NDOF_H_
25
#define _GHOST_EVENT_NDOF_H_
23
/** \file ghost/intern/GHOST_EventNDOF.h
25
* Declaration of GHOST_EventManager class.
28
#ifndef __GHOST_EVENTNDOF_H__
29
#define __GHOST_EVENTNDOF_H__
27
31
#include "GHOST_Event.h"
30
* N-degree of freedom device event.
32
class GHOST_EventNDOF : public GHOST_Event
37
* @param msec The time this event was generated.
38
* @param type The type of this event.
39
* @param x The x-coordinate of the location the cursor was at at the time of the event.
40
* @param y The y-coordinate of the location the cursor was at at the time of the event.
42
GHOST_EventNDOF(GHOST_TUns64 msec, GHOST_TEventType type, GHOST_IWindow* window,
43
GHOST_TEventNDOFData data)
44
: GHOST_Event(msec, type, window)
46
m_ndofEventData = data;
47
m_data = &m_ndofEventData;
51
/** translation & rotation from the device. */
52
GHOST_TEventNDOFData m_ndofEventData;
56
#endif // _GHOST_EVENT_NDOF_H_
34
class GHOST_EventNDOFMotion : public GHOST_Event
37
GHOST_TEventNDOFMotionData m_axisData;
40
GHOST_EventNDOFMotion(GHOST_TUns64 time, GHOST_IWindow* window)
41
: GHOST_Event(time, GHOST_kEventNDOFMotion, window)
48
class GHOST_EventNDOFButton : public GHOST_Event
51
GHOST_TEventNDOFButtonData m_buttonData;
54
GHOST_EventNDOFButton(GHOST_TUns64 time, GHOST_IWindow* window)
55
: GHOST_Event(time, GHOST_kEventNDOFButton, window)
57
m_data = &m_buttonData;
62
#endif // __GHOST_EVENTNDOF_H__