You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.1 KiB
29 lines
1.1 KiB
|
2 years ago
|
# 0.36.0-a
|
||
|
|
Single Thread,
|
||
|
|
|
||
|
|
```
|
||
|
|
TTkInputDriver TTkInput TTK
|
||
|
|
read() <- stdin
|
||
|
|
yield inString --> for inString in _readInput.read()
|
||
|
|
key_process(inString)
|
||
|
|
inputEvent.emit(kevt, mevt) ----> _processInput
|
||
|
|
pasteEvent.emit(str) ----> _pasteInput
|
||
|
|
```
|
||
|
|
|
||
|
|
# 0.xx.0-a +
|
||
|
|
multithread
|
||
|
|
Rework key_process to return kevt,mevt,paste
|
||
|
|
|
||
|
|
```
|
||
|
|
TTkInputDriver TTkInput TTK
|
||
|
|
Thread1 Thread2 (mainn)
|
||
|
|
read() <- stdin
|
||
|
|
yield inString --> for inString in _readInput.read()
|
||
|
|
kevt,mevt,paste = key_process(inString)
|
||
|
|
queue.put(kevt,mevt,paste)
|
||
|
|
|
||
|
|
queue.get()
|
||
|
|
inputEvent.emit(kevt, mevt) ------> _processInput
|
||
|
|
pasteEvent.emit(str) ------> _pasteInput
|
||
|
|
```
|