We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63621bc commit 9ceb1bfCopy full SHA for 9ceb1bf
1 file changed
types/device.d.lua
@@ -236,6 +236,7 @@ function Device:flush() end
236
---
237
---```lua
238
---local evdev = require "evdev"
239
+---local Device = evdev.device.open
240
241
----- Open an input device (e.g., event0)
242
---local dev = assert(Device("/dev/input/event0"))
@@ -272,7 +273,7 @@ function M.is_device(value) end
272
273
---Open an input device by path.
274
275
----local dev = assert(Device("/dev/input/eventX"))
276
+---local dev = assert(evdev.device.open("/dev/input/eventX"))
277
---```
278
279
---@param path evdev.path
0 commit comments