mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-06-17 06:11:36 +00:00
Zero new device contexts when they're added
This commit is contained in:
@@ -110,6 +110,7 @@ void input_create(const char* device, char* mapFile) {
|
|||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memset(&devices[dev], 0, sizeof(devices[0]));
|
||||||
devices[dev].fd = fd;
|
devices[dev].fd = fd;
|
||||||
devices[dev].dev = libevdev_new();
|
devices[dev].dev = libevdev_new();
|
||||||
libevdev_set_fd(devices[dev].dev, devices[dev].fd);
|
libevdev_set_fd(devices[dev].dev, devices[dev].fd);
|
||||||
|
|||||||
Reference in New Issue
Block a user