diff --git a/main/main.cpp b/main/main.cpp index 85592cb..6371304 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -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;