Fix warning: control may reach end of non-void function [-Wreturn-type]

Fix warning and/or bug in androidKeyToSF() adding a default label for all keys _Keyboard::Unknown_
This commit is contained in:
Eren121 2020-10-23 23:13:50 +02:00 committed by Lukas Dürrenberger
parent b939c794fb
commit d29c51d82b

View File

@ -664,7 +664,8 @@ Keyboard::Key WindowImplAndroid::androidKeyToSF(int32_t key)
case AKEYCODE_BUTTON_THUMBR: case AKEYCODE_BUTTON_THUMBR:
case AKEYCODE_BUTTON_START: case AKEYCODE_BUTTON_START:
case AKEYCODE_BUTTON_SELECT: case AKEYCODE_BUTTON_SELECT:
case AKEYCODE_BUTTON_MODE: return Keyboard::Unknown; case AKEYCODE_BUTTON_MODE:
default: return Keyboard::Unknown;
} }
} }