2019-12-11 13:03:50 +01:00
|
|
|
#include "../src/internal.hpp"
|
|
|
|
#include "../src/vkvm.hpp"
|
|
|
|
#include <catch2/catch.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
TEST_CASE("Keyboard Buffer") {
|
|
|
|
SECTION("write") {
|
|
|
|
vkvm::setLogLevel(vkvm::DEBUG);
|
2020-01-07 16:16:07 +01:00
|
|
|
//vkvm::buttonPressed(vkvm::A);
|
|
|
|
//vkvm::buttonPressed(vkvm::B);
|
|
|
|
//vkvm::buttonPressed(vkvm::C);
|
2019-12-11 13:03:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
SECTION("read") {
|
2020-01-07 16:16:07 +01:00
|
|
|
//CHECK(vkvm::getLastPressedKey() == vkvm::C);
|
|
|
|
//CHECK(vkvm::getLastPressedKey() == vkvm::C);
|
|
|
|
//CHECK(vkvm::getLastPressedKey() == vkvm::C);
|
2019-12-11 13:03:50 +01:00
|
|
|
}
|
|
|
|
}
|