import braille\r
import inputCore\r
from logHandler import log\r
+import brailleInput\r
\r
TIMEOUT = 0.2\r
BAUD_RATE = 19200\r
},\r
})\r
\r
-class InputGesture(braille.BrailleDisplayGesture):\r
+class InputGesture(braille.BrailleDisplayGesture, brailleInput.BrailleInputGesture):\r
\r
source = BrailleDisplayDriver.name\r
\r
\r
self.keyNames = names = set()\r
for group, groupKeysDown in keysDown.iteritems():\r
+ if group == BAUM_BRAILLE_KEYS and len(keysDown) == 1 and not groupKeysDown & 0xfc:\r
+ # This is braille input.\r
+ self.dots = groupKeysDown >> 8\r
+ self.space = groupKeysDown & 0x3\r
if group == BAUM_ROUTING_KEYS:\r
for index in xrange(braille.handler.display.numCells):\r
if groupKeysDown & (1 << index):\r