|
|
@ -37,6 +37,7 @@ gi.require_version('Gtk', '3.0')
|
|
|
|
gi.require_version('GLib', '2.0')
|
|
|
|
gi.require_version('GLib', '2.0')
|
|
|
|
|
|
|
|
|
|
|
|
from keymapper.logger import update_verbosity
|
|
|
|
from keymapper.logger import update_verbosity
|
|
|
|
|
|
|
|
from keymapper.dev.injector import KeycodeInjector
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assert not os.getcwd().endswith('tests')
|
|
|
|
assert not os.getcwd().endswith('tests')
|
|
|
@ -281,6 +282,9 @@ def patch_evdev():
|
|
|
|
self.device = InputDevice('/dev/input/event40')
|
|
|
|
self.device = InputDevice('/dev/input/event40')
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def capabilities(self, *args, **kwargs):
|
|
|
|
|
|
|
|
return []
|
|
|
|
|
|
|
|
|
|
|
|
def write(self, type, code, value):
|
|
|
|
def write(self, type, code, value):
|
|
|
|
self.write_count += 1
|
|
|
|
self.write_count += 1
|
|
|
|
event = InputEvent(type, code, value)
|
|
|
|
event = InputEvent(type, code, value)
|
|
|
@ -317,6 +321,10 @@ patch_unsaved()
|
|
|
|
patch_select()
|
|
|
|
patch_select()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# no need for a high number in tests
|
|
|
|
|
|
|
|
KeycodeInjector.regrab_timeout = 0.15
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
def main():
|
|
|
|
update_verbosity(True)
|
|
|
|
update_verbosity(True)
|
|
|
|
|
|
|
|
|
|
|
|