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