Giter Club home page Giter Club logo

libsgestures's People

Contributors

taaparthur avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

libsgestures's Issues

Questions on usage

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:

./sgestures-libinput-writer | ./sample-gesture-reader

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?):

exec "$SGESTURES_BIN"

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?

Touch start coordinates

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!

Question on Compiling the Reader

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?

config.c.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.