Closed HubKing closed 4 years ago
Hi @HubKing,
I think you have invalid syntax.
Please remove 2:
key above "out:" in config.yml.
swipe:
pinch:
2:
in:
sendkey: "LEFTCTRL+EQUAL" # threshold: 0.5, interval: 0.5
- 2:
out:
sendkey: "" # threshold: 0.5, interval: 0.5
threshold:
pinch: 0.5
interval:
swipe: 0.75
pinch: 0.5
Fusuma parse the config.yml and convert to Hash from YAML.
Pinch in
key is overwritten by Pinch out
key because Hash cannot have the same key.
Yeah, now it works. Thanks. If two instances of the same number of fingers (I guess "2" represents the number of fingers involved), even for different directions, is not valid, maybe showing some warning message like "Multiple instances of Pinch/2 are defined and preceding instance(s) are ignored, are you sure this is what you want?" in the console output would be helpful to prevent this kind of thing.
I prefer to avoid interactive interfaces. I would implement an option to output the assigned values instead.
Pinch (2, out) works, but pinch (2, in) does not work. I have checked that libinput debug and it got the pinch in event.
Here is my config.yml I had used an empty setting for pinch out, because I was not sure whether the gesture's (two fingers moving into opposite directions) name is in or out.
Here is the output of libinput when I performed pinch in.
Here is the output of Fusuma from the moment before I did the libinput test above till now (the moment I am writing this). I had done some pinch out gestures before the test.
To Reproduce Steps to reproduce the behavior:
Expected behavior Work?
Versions Must be the latest, because I installed it a few tens of minutes ago using the commands at the front page.
Additional context A Precision touchpad.