This commit is contained in:
yukun 2019-12-02 14:46:30 +01:00
parent 3d43739ff2
commit cec4c8322b
1 changed files with 7 additions and 6 deletions

View File

@ -8,12 +8,13 @@
int main() { int main() {
vkvm::initialize(0); vkvm::initialize(0);
while(1){ while(1){
vkvm::KeyCode keycode = buchstabeneinlesen(); vkvm::registerEvent(vkvm::KeyDown, []() {
char c = keycode + 65256; vkvm::KeyCode keycode = buchstabeneinlesen();
std::cout<< c<<std::endl; char c = keycode + 65256;
std::string s(1,c); std::cout << c << std::endl;
buchstabenschreiben(s); std::string s(1, c);
buchstabenschreiben(s);
});
} }
} }