mirror of
https://github.com/SFML/SFML.git
synced 2025-01-19 07:45:13 +08:00
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:
parent
b939c794fb
commit
d29c51d82b
@ -664,7 +664,8 @@ Keyboard::Key WindowImplAndroid::androidKeyToSF(int32_t key)
|
||||
case AKEYCODE_BUTTON_THUMBR:
|
||||
case AKEYCODE_BUTTON_START:
|
||||
case AKEYCODE_BUTTON_SELECT:
|
||||
case AKEYCODE_BUTTON_MODE: return Keyboard::Unknown;
|
||||
case AKEYCODE_BUTTON_MODE:
|
||||
default: return Keyboard::Unknown;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user