extendedKeysPressed|=keyBits if keysDown==0 and extendedKeysDown==0 and (keysPressed!=0 or extendedKeysPressed!=0): gesture=KeyGesture(keysPressed,extendedKeysPressed) keysPressed=extendedKeysPressed=0 try: inputCore.manager.executeGesture(gesture) except inputCore.NoInputGestureAction: pass return 0 else: return windll.user32.DefWindowProcW(hwnd,msg,wParam,lParam) nvdaFsBrlWndCls=WNDCLASSEXW() nvdaFsBrlWndCls.cbSize=sizeof(nvdaFsBrlWndCls) nvdaFsBrlWndCls.lpfnWndProc=nvdaFsBrlWndProc nvdaFsBrlWndCls.hInstance=appInstance nvdaFsBrlWndCls.lpszClassName=u"nvdaFsBrlWndCls" class BrailleDisplayDriver(braille.BrailleDisplayDriver,ScriptableObject): name="freedomScientific" # Translators: Names of braille displays. description=_("Freedom Scientific Focus/PAC Mate series") @classmethod def check(cls): return bool(fsbLib) @classmethod def getPossiblePorts(cls): ports = OrderedDict([cls.AUTOMATIC_PORT, ("USB", "USB",)])
_ignoreKeyReleases = True pressedKeys.discard(lParam) elif msg == nvdaHIMSBrlWm and wParam == HIMS_CURSORROUTING: try: inputCore.manager.executeGesture(InputGesture(lParam)) except inputCore.NoInputGestureAction: pass elif msg == nvdaHIMSBrlWm and wParam == HIMS_KEYPRESSED: pressedKeys.add(lParam) _ignoreKeyReleases = False return windll.user32.DefWindowProcW(hwnd,msg,wParam,lParam) nvdaHIMSBrlWndCls = WNDCLASSEXW() nvdaHIMSBrlWndCls.cbSize = sizeof(nvdaHIMSBrlWndCls) nvdaHIMSBrlWndCls.lpfnWndProc = nvdaHIMSBrlWndProc nvdaHIMSBrlWndCls.hInstance = appInstance nvdaHIMSBrlWndCls.lpszClassName = u"nvdaHIMSBrlWndCls" class BrailleDisplayDriver(braille.BrailleDisplayDriver): """ HIMS SyncBraille braille display. """ name = "syncBraille" # Translators: The name of a braille display. description = _("HIMS SyncBraille") @classmethod def check(cls): return bool(himsSyncBrailleLib) def __init__(self): super(BrailleDisplayDriver, self).__init__()
pressedKeys.discard(lParam) elif msg == nvdaHIMSBrlWm and wParam == HIMS_CURSORROUTING: try: inputCore.manager.executeGesture(InputGesture(lParam)) except inputCore.NoInputGestureAction: pass elif msg == nvdaHIMSBrlWm and wParam == HIMS_KEYPRESSED: pressedKeys.add(lParam) _ignoreKeyReleases = False return windll.user32.DefWindowProcW(hwnd, msg, wParam, lParam) nvdaHIMSBrlWndCls = WNDCLASSEXW() nvdaHIMSBrlWndCls.cbSize = sizeof(nvdaHIMSBrlWndCls) nvdaHIMSBrlWndCls.lpfnWndProc = nvdaHIMSBrlWndProc nvdaHIMSBrlWndCls.hInstance = appInstance nvdaHIMSBrlWndCls.lpszClassName = u"nvdaHIMSBrlWndCls" class BrailleDisplayDriver(braille.BrailleDisplayDriver): """ HIMS SyncBraille braille display. """ name = "syncBraille" # Translators: The name of a braille display. description = _("HIMS SyncBraille") @classmethod def check(cls): return bool(himsSyncBrailleLib) def __init__(self):