TimDrew
(TimDrew)
May 22, 2015, 1:57pm
1
Is there a way to access multiple peices of hardware at once for example 2 mice or two keyboards, i believe it is possible with Joysticks, but im not sure about the other two.
battery
(battery)
May 22, 2015, 2:35pm
2
Interesting problem. It’s a bit late to have a go at it myself, but I’d look at getting the connected devices:
python, usb, libusb
Then looking at ways to listen to it:
==========================
Programming with PyUSB 1.0
==========================
Let me introduce myself
=======================
PyUSB 1.0 is a Python_ library allowing easy USB_ access. PyUSB provides
several features:
100% written in Python:
Unlike the 0.x version, which is written in C, 1.0 version is written in
Python. This allows Python programmers with no background in C to
understand better how PyUSB works.
Platform neutrality:
1.0 version implements a frontend-backend scheme. This isolates the API
from system specific implementation details. The glue between the two
layers is the ``IBackend`` interface. PyUSB comes with builtin backends for
libusb 0.1, libusb 1.0 and OpenUSB. You can write your own backend if you
desire to.
This file has been truncated. show original
python, linux, device