diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2023-09-22 15:30:26 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2023-09-22 15:30:26 +0300 |
commit | da322583bf0113e025de6a692ec6a735a0badc99 (patch) | |
tree | 728bd88d593d65ee3f860651954b1ffa3505bc6e /evdev.lua | |
parent | 5011450c665009c0feb722016f381c087307ed0a (diff) | |
download | applause2-da322583bf0113e025de6a692ec6a735a0badc99.tar.gz |
Stream:evkey(): result stream will now contain the key id if the key is pressed, as it was previously documented
Diffstat (limited to 'evdev.lua')
-rw-r--r-- | evdev.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -210,6 +210,6 @@ function Stream:evkey(key) return self:scan(function(last, sample) last = last or 0 return sample.type == C.EV_KEY and sample.code == key and - sample.value or last + (sample.value ~= 0 and key or 0) or last end) end |