最終更新:2014-12-02 (火) 05:16:23 (2987d)  

RAWMOUSE
Top / RAWMOUSE

http://msdn.microsoft.com/en-us/library/windows/desktop/ms645578(v=vs.85).aspx

typedef struct tagRAWMOUSE {
  USHORT usFlags;
  union {
    ULONG  ulButtons;
    struct {
      USHORT usButtonFlags;
      USHORT usButtonData;
    };
  };
  ULONG  ulRawButtons;
  LONG   lLastX;
  LONG   lLastY;
  ULONG  ulExtraInformation;
} RAWMOUSE, *PRAWMOUSE, *LPRAWMOUSE;

メンバ

usFlags

  • MOUSE_ATTRIBUTES_CHANGED0x04Mouse attributes changed; application needs to query the mouse attributes.
    MOUSE_MOVE_RELATIVE0x00Mouse movement data is relative to the last mouse position.
    MOUSE_MOVE_ABSOLUTE0x01Mouse movement data is based on absolute position.
    MOUSE_VIRTUAL_DESKTOP0x02Mouse coordinates are mapped to the virtual desktop (for a multiple monitor system).

ulButtons

  • Reserved

usButtonFlags?

  • 0
  • 1: L down
  • 2: L up

lLastX

  • The motion in the X direction. This is signed relative motion or absolute motion, depending on the value of usFlags.

lLastY

  • The motion in the Y direction. This is signed relative motion or absolute motion, depending on the value of usFlags.