mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-20 15:27:18 +00:00
Zero new device contexts when they're added
This commit is contained in:
1 parent
ccc3d2914a
commit
08af7f66a2
1 file changed
+1
@@ -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