moses-palmer / pynput

Sends virtual input commands
GNU Lesser General Public License v3.0
1.74k stars 244 forks source link

Any way to listen on a particular device on Windows? #544

Closed mristin closed 1 year ago

mristin commented 1 year ago

Hi, Is it anyhow possible to listen on a particular device on Windows?

Fxcilities commented 1 year ago

were you able to do this, and if so how?

moses-palmer commented 1 year ago

As far as I know, this is not possible. The information provided to this library is described here, and it does not contain any device specific information. The function used to register a listener is described here, and it does not provide a way to limit by device.