You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Initialize class/struct variables with default values in platform/ and editor/
This commit is contained in:
@@ -49,15 +49,6 @@
|
||||
static const char *ignore_str = "/dev/input/js";
|
||||
#endif
|
||||
|
||||
JoypadLinux::Joypad::Joypad() {
|
||||
fd = -1;
|
||||
dpad = 0;
|
||||
devpath = "";
|
||||
for (int i = 0; i < MAX_ABS; i++) {
|
||||
abs_info[i] = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
JoypadLinux::Joypad::~Joypad() {
|
||||
for (int i = 0; i < MAX_ABS; i++) {
|
||||
if (abs_info[i]) {
|
||||
|
||||
Reference in New Issue
Block a user