|
Blender
V2.59
|
00001 /* 00002 * $Id: GHOST_EventTrackpad.h 35152 2011-02-25 11:28:33Z jesterking $ 00003 * ***** BEGIN GPL LICENSE BLOCK ***** 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software Foundation, 00017 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00018 * 00019 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. 00020 * All rights reserved. 00021 * 00022 * The Original Code is: all of this file. 00023 * 00024 * Contributor(s): James Deery 11/2009 00025 * Damien Plisson 12/2009 00026 * 00027 * ***** END GPL LICENSE BLOCK ***** 00028 */ 00029 00035 #ifndef _GHOST_EVENT_TRACKPAD_H_ 00036 #define _GHOST_EVENT_TRACKPAD_H_ 00037 00038 #include "GHOST_Event.h" 00039 00043 class GHOST_EventTrackpad : public GHOST_Event 00044 { 00045 public: 00054 GHOST_EventTrackpad(GHOST_TUns64 msec, GHOST_IWindow* window, GHOST_TTrackpadEventSubTypes subtype, GHOST_TInt32 x, GHOST_TInt32 y, GHOST_TInt32 deltaX, GHOST_TInt32 deltaY) 00055 : GHOST_Event(msec, GHOST_kEventTrackpad, window) 00056 { 00057 m_trackpadEventData.subtype = subtype; 00058 m_trackpadEventData.x = x; 00059 m_trackpadEventData.y = y; 00060 m_trackpadEventData.deltaX = deltaX; 00061 m_trackpadEventData.deltaY = deltaY; 00062 m_data = &m_trackpadEventData; 00063 } 00064 00065 protected: 00067 GHOST_TEventTrackpadData m_trackpadEventData; 00068 }; 00069 00070 00071 #endif // _GHOST_EVENT_PAN_H_ 00072