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.32k stars 271 forks source link

Send always returns 0 #87

Closed 0x2E757 closed 4 years ago

0x2E757 commented 4 years ago

Is it a bug or I'm missing something? Any of my interception_send calls always returns 0 (they are working though). Also I've noticed that in all examples interception_send result isn't used. I guess we could use it to ensure that driver did his work?

0x2E757 commented 4 years ago

Sorry, my bad. I'm using interception_wait_with_timeout so it was zeroing device id, that's why I was getting 0 (and code worked because I was spamming buttons sometimes so device id wasn't 0 always but console was full of logs).