SDL2 SDL_DOLLARGESTURE error always -2.0

Hi,

I always get a SDL_DOLLARGESTURE error of -2.0, whether the entered
gesture was a known pre-recorded one or not. This is using the latest
SDL 2.0 code from the hg repo on Android. You can see the relevant
part of my prototype code here should that be any use:

https://gist.github.com/3672150

The prototype simply allows recording 3 gestures, then allows the user
to enter freely reporting the results. Here’s some screenshots:

http://imgur.com/a/X56hQ

The C shape is a downward swipe and as a unwanted match had a -2.0
error, and the Z shape was actually a Z shaped swipe and as a wanted
match also had -2.0 match.

Any ideas?

Cheers,
Richard.

That code hasn’t been touched in a long time. Have you tried debugging it
and seeing if it’s something obvious?On Fri, Sep 7, 2012 at 10:45 PM, Richard Tew <richard.m.tew at gmail.com>wrote:

Hi,

I always get a SDL_DOLLARGESTURE error of -2.0, whether the entered
gesture was a known pre-recorded one or not. This is using the latest
SDL 2.0 code from the hg repo on Android. You can see the relevant
part of my prototype code here should that be any use:

https://gist.github.com/3672150

The prototype simply allows recording 3 gestures, then allows the user
to enter freely reporting the results. Here’s some screenshots:

http://imgur.com/a/X56hQ

The C shape is a downward swipe and as a unwanted match had a -2.0
error, and the Z shape was actually a Z shaped swipe and as a wanted
match also had -2.0 match.

Any ideas?

Cheers,
Richard.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

A problem on my end apparently. There must have been something wrong
with my original code, it works fine in my new app :slight_smile:

Cheers,
Richard.On Sat, Sep 8, 2012 at 6:28 PM, Sam Lantinga wrote:

That code hasn’t been touched in a long time. Have you tried debugging it
and seeing if it’s something obvious?