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

Is there a way to not play/pause while dragging ? #42

Open uugaabuugaa opened 5 months ago

uugaabuugaa commented 5 months ago

MBTN_LEFT cycle pause #@click MBTN_LEFT cycle fullscreen #@double_click MBTN_LEFT_DBL ignore # avoid conflicts

Using it is good enough for play/pause and fullscreen but when I drag window it also causes play/pause action? I'm assuming using #@press or #@release in some manner should resolve this but I don't know how to.

natural-harmonia-gropius commented 5 months ago
MBTN_LEFT           set pause yes                            #@press
MBTN_LEFT           set pause no                             #@release
uugaabuugaa commented 5 months ago

MBTN_LEFT set pause yes #@press MBTN_LEFT set pause no #@release

It doesn't seem to have any affect for some reason. Even when I remove other inputs related to MBTN_LEFT, press and release don't do anything related to MBTN_LEFT . It's really strange because using MBTN_RIGHT script-binding uosc/menu #@click MBTN_RIGHT script-binding evafast/speedup #@press MBTN_RIGHT script-binding evafast/slowdown #@release

works exactly as intended. I'm assuming you meant to put this in input.conf to have play-pause, drag and fullscreen to work?

MBTN_LEFT cycle pause #@click MBTN_LEFT cycle fullscreen #@double_click MBTN_LEFT set pause yes #@press MBTN_LEFT set pause no #@release MBTN_LEFT_DBL ignore # avoid conflicts

natural-harmonia-gropius commented 5 months ago

https://github.com/natural-harmonia-gropius/input-event/assets/50797982/c4d1ec1e-acd8-4c04-95fd-1ca19794e399

image

uugaabuugaa commented 5 months ago

Okay, it's interesting that press and release works as you showed on mpv but not on mpv-net, even though it works same for both with MBTN_RIGHT while using evafast bindings. However, Pressing on Ctrl or shift and dragging on mpv-net works how it would on other media players but ctrl+drag action doesn't do anything on mpv. I think I'll keep using mpv-net with ctrl+drag for now unless I find a better alternative. Thank you for your response.