Free device.
This commit is contained in:
parent
186b9cca92
commit
e9de2ec43d
|
@ -45,11 +45,17 @@ def create_device(specs):
|
||||||
|
|
||||||
return f
|
return f
|
||||||
|
|
||||||
create_device(None)
|
def free_device(f):
|
||||||
|
return fcntl.ioctl(f, linux_uinput.UI_DEV_DESTROY)
|
||||||
|
|
||||||
|
|
||||||
|
_ = create_device(None)
|
||||||
|
|
||||||
print 'Hoi'
|
print 'Hoi'
|
||||||
import time
|
import time
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
|
|
||||||
|
free_device(_)
|
||||||
# config
|
# config
|
||||||
#dev = {
|
#dev = {
|
||||||
# "input_devices" : [
|
# "input_devices" : [
|
||||||
|
|
Loading…
Reference in New Issue