mirror of
https://github.com/moparisthebest/uinput-mapper
synced 2025-01-08 11:58:02 -05:00
Free device.
This commit is contained in:
parent
186b9cca92
commit
e9de2ec43d
@ -45,11 +45,17 @@ def create_device(specs):
|
||||
|
||||
return f
|
||||
|
||||
create_device(None)
|
||||
def free_device(f):
|
||||
return fcntl.ioctl(f, linux_uinput.UI_DEV_DESTROY)
|
||||
|
||||
|
||||
_ = create_device(None)
|
||||
|
||||
print 'Hoi'
|
||||
import time
|
||||
time.sleep(5)
|
||||
|
||||
free_device(_)
|
||||
# config
|
||||
#dev = {
|
||||
# "input_devices" : [
|
||||
|
Loading…
Reference in New Issue
Block a user