最終更新:2014-12-02 (火) 05:16:23 (3426d)
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_CHANGED 0x04 Mouse attributes changed; application needs to query the mouse attributes. MOUSE_MOVE_RELATIVE 0x00 Mouse movement data is relative to the last mouse position. MOUSE_MOVE_ABSOLUTE 0x01 Mouse movement data is based on absolute position. MOUSE_VIRTUAL_DESKTOP 0x02 Mouse 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.