We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2675

Summary: gestures reported that I did not register
Product: SDL Reporter: Martin Gerhardy <martin.gerhardy>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: sylvain.becker
Version: HG 2.1   
Hardware: x86_64   
OS: Linux   

Description Martin Gerhardy 2014-08-07 07:48:45 UTC
I'm loading two gestures but get reports about three different gesture ids/hashes

My code is here:
https://github.com/mgerhardy/caveexpress/tree/445c0671da453865c583779edc4409af989a806e

loading two gestures via SDL_LoadDollarTemplates

I am handling the event SDL_DOLLARGESTURE to get the gestureId (see https://github.com/mgerhardy/caveexpress/commit/dd82601ad1e092303fe2bb96052d965ed82553f0#diff-e2600b64d0f4760a4393a6ac1d1a7127L120 )
Comment 1 Martin Gerhardy 2014-08-07 07:50:34 UTC
... and my two gestures can be found here: https://github.com/mgerhardy/caveexpress/tree/5cdbf8f25eb85aee40ddd881193de7805ad4a342/src/engine/common/gestures

Both includes two fingers - the dollar gesture event is even thrown if I just tap with one finger - so the detected might be broken, too.
Comment 2 Ryan C. Gordon 2015-02-19 05:22:18 UTC
Marking a large number of bugs with the "triage-2.0.4" keyword at once. Sorry if you got a lot of email from this. This is to help me sort through some bugs in regards to a 2.0.4 release. We may or may not fix this bug for 2.0.4, though!
Comment 3 Sylvain 2019-08-22 11:27:02 UTC
your gesture datas are too big, should 512 bytes.
eg: sizeof(templ.path[0]),DOLLARNPOINTS

so it loads 3 + 4 gestures, instead of 1 + 1


https://hg.libsdl.org/SDL/file/1e4d6b83f946/src/events/SDL_gesture.c#l132

https://hg.libsdl.org/SDL/file/1e4d6b83f946/src/events/SDL_gesture.c#l246
Comment 4 Sylvain 2019-10-23 09:18:02 UTC
I think gestures are not as good as you expect. you expect (and recorded) multi finger gesture, whereas there are only 1 finger gesture :/
this is why the file has a more entries than what you thought!