natural-harmonia-gropius / input-event

InputEvent.lua for mpv-player, enhanced input.conf with better, conflict-free, low-latency event mechanism.
MIT License
45 stars 5 forks source link

press/release binding for uosc overwritten? #14

Closed xfzv closed 2 years ago

xfzv commented 2 years ago
  1. In input.conf, use either:
TAB        script-binding uosc/toggle-ui        #@press
TAB        script-binding uosc/toggle-ui        #@release

# or

TAB        script-message-to uosc toggle-elements timeline        #@press
TAB        script-message-to uosc toggle-elements timeline        #@release
  1. Press and release: works as expected
  2. Press once (can happen by mistake)
  3. Try to press/release again: no longer works, the command bound to TAB is now toggled when single pressing TAB

Is this expected?

natural-harmonia-gropius commented 2 years ago

Try the latest version

fixed by https://github.com/Natural-Harmonia-Gropius/InputEvent/commit/5099091abf914ba40017a00aaad8337fd6b96f14 and https://github.com/Natural-Harmonia-Gropius/InputEvent/commit/d94a90f2dbad97643834a329ac149b3608f29163.

xfzv commented 2 years ago

Fixed here indeed, thanks!