SDL has a similar thing with its "dollar gesture" API, but I haven't looked into implementing that yet - partly because it seems a little 'heavy'.Ranguna259 wrote:Aperantly the Android API has gesture detection built in, can you guys check if you can implement something like this ?
love-android-sdl2 (native, 0.9.2)
- slime
- Solid Snayke
- Posts: 3166
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: love-android-sdl2 (native, 0.9.0)
- Ranguna259
- Party member
- Posts: 911
- Joined: Tue Jun 18, 2013 10:58 pm
- Location: I'm right next to you
Re: love-android-sdl2 (native, 0.9.0)
Yeah, when you think about it the idea itself has some really complex stuff.. Maybe all the lover needed to do would be something like, creating a gesture (with some kind of gesture listener) in an app, then the app would save the gesture (with all the movement and the velocity data) into a file and then to use that gesture we'd need to load the gesture file. We can't code a gesture per se, we create it with a listener and then load the gesture file. But maybe adding some options to ignore gesture velocity or gesture time intervals and all those other gesture-related technical stuff would be smart too.slime wrote:SDL has a similar thing with its "dollar gesture" API, but I haven't looked into implementing that yet - partly because it seems a little 'heavy'.Ranguna259 wrote:Aperantly the Android API has gesture detection built in, can you guys check if you can implement something like this ?
What do you think ?
Re: love-android-sdl2 (native, 0.9.0)
It's really hard!Ranguna259 wrote:Yeah, when you think about it the idea itself has some really complex stuff.. Maybe all the lover needed to do would be something like, creating a gesture (with some kind of gesture listener) in an app, then the app would save the gesture (with all the movement and the velocity data) into a file and then to use that gesture we'd need to load the gesture file. We can't code a gesture per se, we create it with a listener and then load the gesture file. But maybe adding some options to ignore gesture velocity or gesture time intervals and all those other gesture-related technical stuff would be smart too.slime wrote:SDL has a similar thing with its "dollar gesture" API, but I haven't looked into implementing that yet - partly because it seems a little 'heavy'.Ranguna259 wrote:Aperantly the Android API has gesture detection built in, can you guys check if you can implement something like this ?
What do you think ?
Re: love-android-sdl2 (native, 0.9.0)
Personally I find it too much of an overkill. I would assume that it seldomly happens to that a new gesture is required. Also it should not be too hard to detect gestures in Lua code. Maybe we could create a "Share a Gesture" thread similar to the "Share a Shader" thread at http://www.love2d.org/forums/viewtopic.php?f=4&t=3733.
Bird thing: @fysxdotorg Blog thing: fysx.org
Re: love-android-sdl2 (native, 0.9.0)
Are there any known unoptimized spots in this android port?
Re: love-android-sdl2 (native, 0.9.0)
I don't know any except the final size of the APK file when you build for both armeabiv and armeabiv7 archs.jjmafiae wrote:Are there any known unoptimized spots in this android port?
Re: love-android-sdl2 (native, 0.9.0)
Have a look at the bug tracker: https://bitbucket.org/MartinFelis/love- ... tatus=open
There seems to be a problem with sound for some people: https://bitbucket.org/MartinFelis/love- ... c-is-laggy
Also there is some unneccessary copying of the .love file: https://bitbucket.org/MartinFelis/love- ... amelove-to
For most cases however I think it is in good shape.
There seems to be a problem with sound for some people: https://bitbucket.org/MartinFelis/love- ... c-is-laggy
Also there is some unneccessary copying of the .love file: https://bitbucket.org/MartinFelis/love- ... amelove-to
For most cases however I think it is in good shape.
Bird thing: @fysxdotorg Blog thing: fysx.org
- Ranguna259
- Party member
- Posts: 911
- Joined: Tue Jun 18, 2013 10:58 pm
- Location: I'm right next to you
Re: love-android-sdl2 (native, 0.9.0)
TangZero wrote: It's really hard!
It's hard on both sides, it's actually really complicated to detect gestures, we could say that coding gestures is as hard as coding physics from scretch.fysx wrote:Personally I find it too much of an overkill. I would assume that it seldomly happens to that a new gesture is required. Also it should not be too hard to detect gestures in Lua code. Maybe we could create a "Share a Gesture" thread similar to the "Share a Shader" thread at http://www.love2d.org/forums/viewtopic.php?f=4&t=3733.
This is what I have so far for zooming in and out on a rectangle ( not tested ):
(original var is the original rectangle, without zoom)
- Ranguna259
- Party member
- Posts: 911
- Joined: Tue Jun 18, 2013 10:58 pm
- Location: I'm right next to you
Re: love-android-sdl2 (native, 0.9.0)
Can someone teach me how to build an apk with the source, step by step please, I want to test out Display Metrics
Re: love-android-sdl2 (native, 0.9.0)
You do not need to build an apk yourself. You can use the standard alpha .apk which will run any Love game extracted to /sdcard/lovegame.
Bird thing: @fysxdotorg Blog thing: fysx.org
Who is online
Users browsing this forum: No registered users and 2 guests