Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/ghost/intern/GHOST_EventCursor.h')
-rw-r--r--intern/ghost/intern/GHOST_EventCursor.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/intern/ghost/intern/GHOST_EventCursor.h b/intern/ghost/intern/GHOST_EventCursor.h
index ba85cd74723..d83ff6af6ce 100644
--- a/intern/ghost/intern/GHOST_EventCursor.h
+++ b/intern/ghost/intern/GHOST_EventCursor.h
@@ -33,11 +33,11 @@ class GHOST_EventCursor : public GHOST_Event {
public:
/**
* Constructor.
- * \param msec The time this event was generated.
- * \param type The type of this event.
- * \param x The x-coordinate of the location the cursor was at the time of the event.
- * \param y The y-coordinate of the location the cursor was at the time of the event.
- * \param tablet The tablet data associated with this event.
+ * \param msec: The time this event was generated.
+ * \param type: The type of this event.
+ * \param x: The x-coordinate of the location the cursor was at the time of the event.
+ * \param y: The y-coordinate of the location the cursor was at the time of the event.
+ * \param tablet: The tablet data associated with this event.
*/
GHOST_EventCursor(GHOST_TUns64 msec,
GHOST_TEventType type,
@@ -45,11 +45,8 @@ class GHOST_EventCursor : public GHOST_Event {
GHOST_TInt32 x,
GHOST_TInt32 y,
const GHOST_TabletData &tablet)
- : GHOST_Event(msec, type, window)
+ : GHOST_Event(msec, type, window), m_cursorEventData({x, y, tablet})
{
- m_cursorEventData.x = x;
- m_cursorEventData.y = y;
- m_cursorEventData.tablet = tablet;
m_data = &m_cursorEventData;
}