Does anyone know how to use the Raw Input facility on Windows from a WX Python application?
What I need to do is be able to differentiate the input from multiple keyboards. So if there is another way to achieving that, that would work too.
Does anyone know how to use the Raw Input facility on Windows from a WX Python application?
What I need to do is be able to differentiate the input from multiple keyboards. So if there is another way to achieving that, that would work too.
Have you tried using ctypes?
>>> import ctypes
>>> ctypes.windll.user32.RegisterRawInputDevices
<_FuncPtr object at 0x01FCFDC8>
It would be a little work setting up the Python version of the necessary structures, but you may be able to query the Win32 API directly this way without going through wxPython.
Theres a nice looking library here http://code.google.com/p/pymultimouse/
It's not wx-python specific - but it does use raw input in python with ctypes (and worked in my test with 2 mice)