ioHub icon indicating copy to clipboard operation
ioHub copied to clipboard

Implement windows LL hooks as small DLL plus ctypes

Open isolver opened this issue 11 years ago • 0 comments

Py hook could be replaced quite easily with a small C DLL proving the LL hook bridge to python callbacks. Rest of functionality could be ctypes. The DzlL for the actual hook init. And callback is because the LL hooks must point to functions in a DLL, since they are injected into the event processing pipeline. The C callbacks could inturn call python callbacks though. Or, event queuing could be done in the C DLL and timed polling of an event queue could be done, since we are using a timed poll to pump the msg que anyhow for window events.

The would remove py hook as a dependency, and address any possible unicode issues that may exist with pyhook.

isolver avatar Apr 13 '13 23:04 isolver