File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ function Device:ungrab() end
189189--- while true do
190190--- if assert(dev:poll()) then
191191--- local e = assert(dev:read())
192- --- if e.type == e .EV_KEY then
192+ --- if e.type == ecodes .EV_KEY then
193193--- print(e.code, e.value)
194194--- end
195195--- end
@@ -209,7 +209,7 @@ function Device:poll() end
209209--- local dev = assert(Device("/dev/input/eventX"))
210210---
211211--- for e in dev:events() do
212- --- if e.type == e .EV_KEY then
212+ --- if e.type == ecodes .EV_KEY then
213213--- print(e.code, e.value)
214214--- end
215215--- end
@@ -229,7 +229,7 @@ function Device:events() end
229229--- while true do
230230--- if assert(dev:poll()) then
231231--- local e = assert(dev:read())
232- --- if e.type == e .EV_KEY then
232+ --- if e.type == ecodes .EV_KEY then
233233--- print(e.code, e.value)
234234--- end
235235--- end
You can’t perform that action at this time.
0 commit comments