~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to intern/ghost/intern/GHOST_EventNDOF.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 *
20
20
 * ***** END GPL LICENSE BLOCK *****
21
21
 */
22
 
 
23
 
 
24
 
#ifndef _GHOST_EVENT_NDOF_H_
25
 
#define _GHOST_EVENT_NDOF_H_
 
22
 
 
23
/** \file ghost/intern/GHOST_EventNDOF.h
 
24
 *  \ingroup GHOST
 
25
 * Declaration of GHOST_EventManager class.
 
26
 */
 
27
 
 
28
#ifndef __GHOST_EVENTNDOF_H__
 
29
#define __GHOST_EVENTNDOF_H__
26
30
 
27
31
#include "GHOST_Event.h"
28
32
 
29
 
/**
30
 
 * N-degree of freedom device event.
31
 
 */
32
 
class GHOST_EventNDOF : public GHOST_Event
33
 
{
34
 
public:
35
 
        /**
36
 
         * Constructor.
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.
41
 
         */
42
 
        GHOST_EventNDOF(GHOST_TUns64 msec, GHOST_TEventType type, GHOST_IWindow* window, 
43
 
        GHOST_TEventNDOFData data)
44
 
                : GHOST_Event(msec, type, window)
45
 
        {
46
 
                m_ndofEventData = data;
47
 
                m_data = &m_ndofEventData;
48
 
        }
49
 
 
50
 
protected:
51
 
        /** translation & rotation from the device. */
52
 
        GHOST_TEventNDOFData m_ndofEventData;
53
 
};
54
 
 
55
 
 
56
 
#endif // _GHOST_EVENT_NDOF_H_
57
 
 
 
33
 
 
34
class GHOST_EventNDOFMotion : public GHOST_Event
 
35
        {
 
36
        protected:
 
37
                GHOST_TEventNDOFMotionData m_axisData;
 
38
        
 
39
        public:
 
40
                GHOST_EventNDOFMotion(GHOST_TUns64 time, GHOST_IWindow* window)
 
41
                        : GHOST_Event(time, GHOST_kEventNDOFMotion, window)
 
42
                        {
 
43
                        m_data = &m_axisData;
 
44
                        }
 
45
        };
 
46
 
 
47
 
 
48
class GHOST_EventNDOFButton : public GHOST_Event
 
49
        {
 
50
        protected:
 
51
                GHOST_TEventNDOFButtonData m_buttonData;
 
52
        
 
53
        public:
 
54
                GHOST_EventNDOFButton(GHOST_TUns64 time, GHOST_IWindow* window)
 
55
                        : GHOST_Event(time, GHOST_kEventNDOFButton, window)
 
56
                        {
 
57
                        m_data = &m_buttonData;
 
58
                        }
 
59
        };
 
60
 
 
61
 
 
62
#endif // __GHOST_EVENTNDOF_H__