Merge branch 'master' into remotesetting
This commit is contained in:
commit
1d695ef427
@ -237,7 +237,14 @@ class driver(inputDriver):
|
|||||||
return None
|
return None
|
||||||
mEvent = inputData.inputEvent
|
mEvent = inputData.inputEvent
|
||||||
try:
|
try:
|
||||||
|
# mute is a list = ['KEY_MIN_INTERESTING', 'KEY_MUTE']
|
||||||
mEvent['EventName'] = evdev.ecodes.keys[event.code]
|
mEvent['EventName'] = evdev.ecodes.keys[event.code]
|
||||||
|
if isinstance(mEvent['EventName'], list):
|
||||||
|
if len(mEvent['EventName']) > 0:
|
||||||
|
mEvent['EventName'] = mEvent['EventName'][0]
|
||||||
|
if isinstance(mEvent['EventName'], list):
|
||||||
|
if len(mEvent['EventName']) > 0:
|
||||||
|
mEvent['EventName'] = mEvent['EventName'][0]
|
||||||
mEvent['EventValue'] = event.code
|
mEvent['EventValue'] = event.code
|
||||||
mEvent['EventSec'] = event.sec
|
mEvent['EventSec'] = event.sec
|
||||||
mEvent['EventUsec'] = event.usec
|
mEvent['EventUsec'] = event.usec
|
||||||
|
Loading…
Reference in New Issue
Block a user