+ keyboard buffer test
This commit is contained in:
parent
0090b248cf
commit
c7019f1569
|
@ -14,6 +14,17 @@ int main() {
|
|||
vkvm::log(vkvm::INFO, "timer event callback");
|
||||
});
|
||||
|
||||
vkvm::buttonPressed(vkvm::KeyCode::A);
|
||||
vkvm::buttonPressed(vkvm::KeyCode::D);
|
||||
vkvm::buttonPressed(vkvm::KeyCode::Z);
|
||||
vkvm::buttonPressed(vkvm::KeyCode::Backspcce);
|
||||
|
||||
vkvm::KeyCode code = vkvm::getLastPressedKey();
|
||||
while(code != 0){
|
||||
vkvm::log(vkvm::INFO, "keyCode: ", code);
|
||||
code = vkvm::getLastPressedKey();
|
||||
}
|
||||
|
||||
std::string input;
|
||||
while(input != "exit"){
|
||||
std::cout << "type r for redraw and t for timer (exit to exit)" << std::endl;
|
||||
|
|
Loading…
Reference in New Issue