Merge branch 'master' into remotesetting

This commit is contained in:
chrys 2018-09-07 23:07:10 +02:00
commit 1d695ef427

View File

@ -237,7 +237,14 @@ class driver(inputDriver):
return None
mEvent = inputData.inputEvent
try:
# mute is a list = ['KEY_MIN_INTERESTING', 'KEY_MUTE']
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['EventSec'] = event.sec
mEvent['EventUsec'] = event.usec