You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Fix some code found by Coverity Scan and PVS Studio
This commit is contained in:
@@ -513,6 +513,8 @@ void JoypadLinux::process_joypads() {
|
||||
break;
|
||||
|
||||
default:
|
||||
if (ev.code >= MAX_ABS)
|
||||
return;
|
||||
if (joy->abs_map[ev.code] != -1 && joy->abs_info[ev.code]) {
|
||||
InputDefault::JoyAxis value = axis_correct(joy->abs_info[ev.code], ev.value);
|
||||
joy->curr_axis[joy->abs_map[ev.code]] = value;
|
||||
|
||||
Reference in New Issue
Block a user