adbkeyboard: fix compiler warning.

This commit is contained in:
Maxim Poliakovski 2023-08-07 12:50:38 +02:00
parent b23bb04dac
commit cd9ccb66ed

View File

@ -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);
REGISTER_DEVICE(AdbKeyboard, AdbKeyboard_Descriptor);