Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_EventTrackpad.h
| Show All 30 Lines | |||||
| */ | */ | ||||
| class GHOST_EventTrackpad : public GHOST_Event { | class GHOST_EventTrackpad : public GHOST_Event { | ||||
| public: | public: | ||||
| /** | /** | ||||
| * Constructor. | * Constructor. | ||||
| * \param msec: The time this event was generated. | * \param msec: The time this event was generated. | ||||
| * \param window: The window of this event. | * \param window: The window of this event. | ||||
| * \param subtype: The subtype of the event. | * \param subtype: The subtype of the event. | ||||
| * \param x: The x-delta of the pan event. | * \param x: The x-coordinate of the location the cursor was at the time of the event. | ||||
| * \param y: The y-delta of the pan event. | * \param y: The y-coordinate of the location the cursor was at the time of the event. | ||||
| * \param deltaX: The x-delta of the pan event. | |||||
| * \param deltaY: The y-delta of the pan event. | |||||
| * \param isDirectionInverted: The delta is inverted from the device due to system preferences. | |||||
| * \param factor: The magnification or rotation value of the corresponding gestures. | |||||
| */ | */ | ||||
| GHOST_EventTrackpad(uint64_t msec, | GHOST_EventTrackpad(uint64_t msec, | ||||
| GHOST_IWindow *window, | GHOST_IWindow *window, | ||||
| GHOST_TTrackpadEventSubTypes subtype, | GHOST_TTrackpadEventSubTypes subtype, | ||||
| int32_t x, | int32_t x, | ||||
| int32_t y, | int32_t y, | ||||
| int32_t deltaX, | int32_t deltaX, | ||||
| int32_t deltaY, | int32_t deltaY, | ||||
| bool isDirectionInverted) | bool isDirectionInverted, | ||||
| float factor) | |||||
| : GHOST_Event(msec, GHOST_kEventTrackpad, window) | : GHOST_Event(msec, GHOST_kEventTrackpad, window) | ||||
| { | { | ||||
| m_trackpadEventData.subtype = subtype; | m_trackpadEventData.subtype = subtype; | ||||
| m_trackpadEventData.x = x; | m_trackpadEventData.x = x; | ||||
| m_trackpadEventData.y = y; | m_trackpadEventData.y = y; | ||||
| m_trackpadEventData.deltaX = deltaX; | m_trackpadEventData.deltaX = deltaX; | ||||
| m_trackpadEventData.deltaY = deltaY; | m_trackpadEventData.deltaY = deltaY; | ||||
| m_trackpadEventData.isDirectionInverted = isDirectionInverted; | m_trackpadEventData.isDirectionInverted = isDirectionInverted; | ||||
| m_trackpadEventData.factor = factor; | |||||
| m_data = &m_trackpadEventData; | m_data = &m_trackpadEventData; | ||||
| } | } | ||||
| protected: | protected: | ||||
| /** The mouse pan data */ | /** The mouse pan data */ | ||||
| GHOST_TEventTrackpadData m_trackpadEventData; | GHOST_TEventTrackpadData m_trackpadEventData; | ||||
| }; | }; | ||||