From c15cc2df4e4946918aa2ed69e999c4e5ddb8cb66 Mon Sep 17 00:00:00 2001 From: chrys Date: Sun, 25 Jun 2017 21:21:12 +0200 Subject: [PATCH] no empty input event; make hartbeat work; plugInputDevice trigger --- .../onPlugInputDevice/50000-UpdateDevices.py | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 src/fenrir/commands/onPlugInputDevice/50000-UpdateDevices.py diff --git a/src/fenrir/commands/onPlugInputDevice/50000-UpdateDevices.py b/src/fenrir/commands/onPlugInputDevice/50000-UpdateDevices.py new file mode 100755 index 00000000..ffd26e6a --- /dev/null +++ b/src/fenrir/commands/onPlugInputDevice/50000-UpdateDevices.py @@ -0,0 +1,22 @@ +#!/bin/python +# -*- coding: utf-8 -*- + +# Fenrir TTY screen reader +# By Chrys, Storm Dragon, and contributers. + +from core import debug + +class command(): + def __init__(self): + pass + def initialize(self, environment): + self.env = environment + def shutdown(self): + pass + def getDescription(self): + return 'No description found' + def run(self): + if not self.env['runtime']['screenManager'].isSuspendingScreen(): # remove if all works + self.env['runtime']['inputManager'].updateInputDevices() + def setCallback(self, callback): + pass