diff --git a/devices/common/adb/adbkeyboard.cpp b/devices/common/adb/adbkeyboard.cpp index 1724eea..ce81522 100644 --- a/devices/common/adb/adbkeyboard.cpp +++ b/devices/common/adb/adbkeyboard.cpp @@ -32,7 +32,7 @@ AdbKeyboard::AdbKeyboard(std::string name) : AdbDevice(name) { void AdbKeyboard::event_handler(const KeyboardEvent& event) { if (event.flags & KEYBOARD_EVENT_DOWN) { - } + } else if (event.flags & KEYBOARD_EVENT_UP) { } } @@ -45,6 +45,7 @@ void AdbKeyboard::reset() { } bool AdbKeyboard::get_register_0() { + return false; } void AdbKeyboard::set_register_2() { @@ -81,4 +82,4 @@ static const DeviceDescription AdbKeyboard_Descriptor = { AdbKeyboard::create, {}, {} }; -REGISTER_DEVICE(AdbKeyboard, AdbKeyboard_Descriptor); \ No newline at end of file +REGISTER_DEVICE(AdbKeyboard, AdbKeyboard_Descriptor);