@@ -24,10 +24,6 @@ local M = {}
2424--- local UInput = evdev.uinput.create
2525--- local ui = assert(UInput())
2626---
27- ---- - Give the system a moment to notice the new virtual device.
28- ---- - Replace this with your preferred sleep helper.
29- --- os.execute("sleep 0.5")
30- ---
3127--- ui:emit(evdev.ecodes.EV_KEY, evdev.ecodes.KEY_A, 1)
3228--- ui:emit(evdev.ecodes.EV_KEY, evdev.ecodes.KEY_A, 0)
3329--- ui:sync()
@@ -98,10 +94,6 @@ function UInput:is_open() end
9894--- local UInput = evdev.uinput.create
9995--- local ui = assert(UInput())
10096---
101- ---- - Give the system a moment to notice the new virtual device.
102- ---- - Replace this with your preferred sleep helper.
103- --- os.execute("sleep 0.5")
104- ---
10597--- local EV_KEY = evdev.ecodes.EV_KEY
10698--- ui:emit(EV_KEY, evdev.ecodes.KEY_A, 1)
10799--- ui:emit(EV_KEY, evdev.ecodes.KEY_A, 0)
@@ -143,7 +135,6 @@ function UInput:sync() end
143135--- ```lua
144136--- local UInput = evdev.uinput.create
145137--- local ui = assert(UInput())
146- --- os.execute("sleep 0.5")
147138---
148139---- - Set repeat delay to 500ms, repeat period to 50ms
149140--- ui:set_repeat(500, 50)
@@ -161,7 +152,6 @@ function UInput:set_repeat(delay, period) end
161152--- ```lua
162153--- local UInput = evdev.uinput.create
163154--- local ui = assert(UInput())
164- --- os.execute("sleep 0.5")
165155---
166156--- local delay, period, err = ui:get_repeat()
167157--- assert(delay, err)
0 commit comments