Fix init for InputEvent (#8015)

This commit is contained in:
Markus
2025-09-18 06:32:56 -05:00
committed by GitHub
co-authored by GitHub
parent ba18467bd1
commit d8381aa905
10 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ int32_t LinuxInput::runOnce()
int rd = read(events[i].data.fd, ev, sizeof(ev));
assert(rd > ((signed int)sizeof(struct input_event)));
for (int j = 0; j < rd / ((signed int)sizeof(struct input_event)); j++) {
InputEvent e;
InputEvent e = {};
e.inputEvent = INPUT_BROKER_NONE;
e.source = this->_originName;
e.kbchar = 0;