mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-25 03:32:01 +00:00
Clear buffer on read.
This commit is contained in:
parent
7e8020df59
commit
019d987623
@ -76,7 +76,10 @@ class KeyboardController {
|
|||||||
|
|
||||||
uint8_t read() {
|
uint8_t read() {
|
||||||
pic_.apply_edge<1>(false);
|
pic_.apply_edge<1>(false);
|
||||||
return input_;
|
|
||||||
|
const uint8_t key = input_;
|
||||||
|
input_ = 0;
|
||||||
|
return key;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user