// This code is distributed under MIT license. // Copyright (c) 2015 George Mamaladze // See license.txt or https://mit-license.org/ using System.Runtime.InteropServices; namespace Gma.System.MouseKeyHook.WinApi { /// /// The structure contains information about a mouse input event. /// /// /// See full documentation at http://globalmousekeyhook.codeplex.com/wikipage?title=MouseStruct /// [StructLayout(LayoutKind.Explicit)] internal struct MouseStruct { /// /// Specifies a Point structure that contains the X- and Y-coordinates of the cursor, in screen coordinates. /// [FieldOffset(0x00)] public Point Point; /// /// Specifies information associated with the message. /// /// /// The possible values are: /// /// /// 0 - No Information /// /// /// 1 - X-Button1 Click /// /// /// 2 - X-Button2 Click /// /// /// 120 - Mouse Scroll Away from User /// /// /// -120 - Mouse Scroll Toward User /// /// /// [FieldOffset(0x0A)] public short MouseData; /// /// Returns a Timestamp associated with the input, in System Ticks. /// [FieldOffset(0x10)] public int Timestamp; } }