From cd9ccb66ed70548a491f696b6dba45cca5a072b2 Mon Sep 17 00:00:00 2001 From: Maxim Poliakovski Date: Mon, 7 Aug 2023 12:50:38 +0200 Subject: [PATCH] adbkeyboard: fix compiler warning. --- devices/common/adb/adbkeyboard.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);