taaparthur / libsgestures Goto Github PK
View Code? Open in Web Editor NEWSimble gesture library
License: MIT License
Simble gesture library
License: MIT License
Things seem to be working mostly ok for me using:
sgestures-libinput-writer | sgestures
Where sgestures
is compiled from https://github.com/TAAPArthur/SystemConfig/blob/master/Config/.config/sgestures/config.c with modified gestureBindings. Only issue is a 3-finger tap produces a segmentation fault. Even when I use your unmodified config.c, a 3-finger tap still seg faults. There is no binding defined for a 3 finger tap.
Hello, can you please help me understand "normal" usage? I've built libsgestures as an Alpine Linux package and separately built an sgestures
binary based off your config.c with some minor modifications.
I can successfully test the above using the writer piped into the reader as illustrated in the debug section of the Makefile:
Line 50 in e41a8c1
So I feel like I'm almost there, I'm just a little confused over your sgestures.sh
where it seems like when you recompile you just exec sgestures and that's it (where is the writer?):
Line 24 in e41a8c1
I'm not explaining it well really, but based on our previous interaction with navboard, your approach for your usage seems similar here, in that you have this setup so you can make config changes and recompile on the device you are running it on, which is cool, but I'm trying to build just a static config to run on another machine with the understanding that if I need a config change, I'll have to do it on the builder and reinstall on the target. Can I build just a standalone writer/reader or does there need to be a separate writer piped to the reader?
Hello, I hope your new year is going well!
I am still using this great software with no issues but I'm changing other components and in the process decided to also change how I'm using libsgestures.
I'd like to completely offload the gesture region detection to an external script. Currently, regions are set at compile time. I've accomplished this by monitoring both gestureSelectMask
and TouchStartMask
so I get two messages for each event, the touch start and then the final gesture.
I tried to figure out to include the touch down coordinates as part of the final gesture event but couldn't figure it out. If you have any suggestions I'd appreciate it. Thanks!
Sorry to keep asking questions but I'm struggling with getting the reader to work unless I compile with debug flags. Attached is the config.c I'm using. In order to shoehorn it into an Alpine package, I'm copying in the config.c as sample-gesture-reader.c
and then using make sample-gesture-reader
as the build step. The packaging step renames the executable to sgestures
.
If I patch out the debug flags:
--- ./Makefile.orig
+++ ./Makefile
@@ -41,7 +41,6 @@
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) -ludev -linput
-sample-gesture-reader: CFLAGS := $(DEBUGGING_FLAGS)
sample-gesture-reader: sample-gesture-reader.o $(SRC:.c=.o)
$(CC) $(CFLAGS) $^ -o $@ -lm
I have the issue previously noted where the only gesture recognized is a tap. If I don't patch the Makefile and compile with the debugging flags then it works well, I get North, South, East, West etc.
What am I doing wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.