oblitum / Interception

The Interception API aims to build a portable programming interface that allows one to intercept and control a range of input devices.
http://oblita.com/interception
1.35k stars 269 forks source link

wrong InterceptionMouseStroke struct? #27

Closed zeg closed 8 years ago

zeg commented 8 years ago

data I got from stroke is

2byte button up and down 2byte 0 2byte rolling data 2byte 0 4byte x 4byte y

windows10 x64

oblitum commented 8 years ago

C doesn't guarantee contiguous data members, structure padding is common, see:

It's expected from the programmer that the data structures provided should be used for member access instead of hardcoded offset access.

zeg commented 8 years ago

oh ~~ understand

I use autohotkey , it can only get number from raw