mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-03 06:26:04 +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);
|
||||
}
|
||||
|
||||
memset(&devices[dev], 0, sizeof(devices[0]));
|
||||
devices[dev].fd = fd;
|
||||
devices[dev].dev = libevdev_new();
|
||||
libevdev_set_fd(devices[dev].dev, devices[dev].fd);
|
||||
|
||||
Reference in New Issue
Block a user