No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

53 líneas
1.9 KiB

  1. // This code is distributed under MIT license.
  2. // Copyright (c) 2015 George Mamaladze
  3. // See license.txt or https://mit-license.org/
  4. using System.Runtime.InteropServices;
  5. namespace Gma.System.MouseKeyHook.WinApi
  6. {
  7. /// <summary>
  8. /// The <see cref="MouseStruct" /> structure contains information about a mouse input event.
  9. /// </summary>
  10. /// <remarks>
  11. /// See full documentation at http://globalmousekeyhook.codeplex.com/wikipage?title=MouseStruct
  12. /// </remarks>
  13. [StructLayout(LayoutKind.Explicit)]
  14. internal struct MouseStruct
  15. {
  16. /// <summary>
  17. /// Specifies a Point structure that contains the X- and Y-coordinates of the cursor, in screen coordinates.
  18. /// </summary>
  19. [FieldOffset(0x00)] public Point Point;
  20. /// <summary>
  21. /// Specifies information associated with the message.
  22. /// </summary>
  23. /// <remarks>
  24. /// The possible values are:
  25. /// <list type="bullet">
  26. /// <item>
  27. /// <description>0 - No Information</description>
  28. /// </item>
  29. /// <item>
  30. /// <description>1 - X-Button1 Click</description>
  31. /// </item>
  32. /// <item>
  33. /// <description>2 - X-Button2 Click</description>
  34. /// </item>
  35. /// <item>
  36. /// <description>120 - Mouse Scroll Away from User</description>
  37. /// </item>
  38. /// <item>
  39. /// <description>-120 - Mouse Scroll Toward User</description>
  40. /// </item>
  41. /// </list>
  42. /// </remarks>
  43. [FieldOffset(0x0A)] public short MouseData;
  44. /// <summary>
  45. /// Returns a Timestamp associated with the input, in System Ticks.
  46. /// </summary>
  47. [FieldOffset(0x10)] public int Timestamp;
  48. }
  49. }