+ keyboard buffer test

This commit is contained in:
Julian Hinxlage 2019-11-26 11:49:55 +01:00
parent 0090b248cf
commit c7019f1569
1 changed files with 11 additions and 0 deletions

View File

@ -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;