mirror of
https://github.com/moparisthebest/uinput-mapper
synced 2024-12-22 03:38:49 -05:00
Fix ofd in mapper
This commit is contained in:
parent
a340b28289
commit
4be3fc0b65
@ -70,6 +70,7 @@ class KeyMapper(object):
|
||||
fd *ofd*.
|
||||
"""
|
||||
_type = ev.type
|
||||
ofd = fd
|
||||
|
||||
if (fd, _type) in self._config:
|
||||
typemaps = self._config[(fd, _type)]
|
||||
@ -81,8 +82,6 @@ class KeyMapper(object):
|
||||
ev.value = info['value'](ev.value)
|
||||
else:
|
||||
ev.value = ev.value
|
||||
else:
|
||||
ofd = fd
|
||||
|
||||
return ofd, ev
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user