mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Code simplifications
CPPcheck found most of them. no need to assign the variable twice: - AnimationTrackEditTypeAudio - SSEffects variable is assigned in all if-else clauses: - EditorHelp - AndroidInputHandler - MenuBar - ShaderCompiler same if clause: - ItemList clearing an empty bitfield has no effect: - Viewport
This commit is contained in:
parent
f2ce0b6741
commit
890fdd56df
8 changed files with 6 additions and 14 deletions
|
@ -88,7 +88,7 @@ void AndroidInputHandler::process_key_event(int p_physical_keycode, int p_unicod
|
|||
ev.instantiate();
|
||||
|
||||
Key physical_keycode = godot_code_from_android_code(p_physical_keycode);
|
||||
Key keycode = physical_keycode;
|
||||
Key keycode;
|
||||
if (unicode == '\b') { // 0x08
|
||||
keycode = Key::BACKSPACE;
|
||||
} else if (unicode == '\t') { // 0x09
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue