From 4b38d75f2c87e491c9b5ba4b8dcf5dc738880933 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 9 Jun 2022 02:42:30 +0900 Subject: [PATCH] [input] Initialize the axis/button callback fields Found these while trying to use the new code in my KSP addon. --- libs/input/evdev/inputlib.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/input/evdev/inputlib.c b/libs/input/evdev/inputlib.c index 1ac7d15ab..1f678b9b2 100644 --- a/libs/input/evdev/inputlib.c +++ b/libs/input/evdev/inputlib.c @@ -218,6 +218,11 @@ check_device (const char *path) dev->event_count = 0; + dev->data = 0; + dev->axis_event = 0; + dev->button_event = 0; + + //Sys_Printf ("%s:\n", path); //Sys_Printf ("\tname: %s\n", dev->name); //Sys_Printf ("\tbuttons: %d\n", dev->num_buttons);