Closed ghost closed 4 years ago
hi @johnnovak , the blocking mode getKey() costs less cpu, maybe it's a better choice than the async way in some cases, so i patch it.
too bad that this is not implemented yet :|
@johnnovak @enthus1ast i am stupid, i read the source code of getKey, i find you use select to get keyboard's input, it's fine, so this pull request is needless.
getKey
hi @johnnovak , the blocking mode getKey() costs less cpu, maybe it's a better choice than the async way in some cases, so i patch it.