Jun-19-2022, 10:41 PM
I figured it out. Looks like I can't delete a post, so I may as well provide the answer. To get exclusive access to a device, the following code worked well:
from evdev import ecodes, InputDevice dev = InputDevice('/dev/input/by-id/[deviceID]') dev.grab()...and to release exclusive access...
dev.ungrab()Simple enough!