Have you tried using ctypes?
>>> import ctypes >>> ctypes.windll.user32.RegisterRawInputDevices <_FuncPtr object at 0x01FCFDC8>
It would be a bit of work on setting up the Python version of the required structures, but you can directly access the Win32 API without going through wxPython.
source share