Page 7 of 33

Re: love-android-sdl2 (native, 0.9.0)

Posted: Sun Jan 26, 2014 11:00 pm
by slime
Ranguna259 wrote:Aperantly the Android API has gesture detection built in, can you guys check if you can implement something like this ?
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'.

Re: love-android-sdl2 (native, 0.9.0)

Posted: Sun Jan 26, 2014 11:24 pm
by Ranguna259
slime wrote:
Ranguna259 wrote:Aperantly the Android API has gesture detection built in, can you guys check if you can implement something like this ?
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'.
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.

What do you think ?

Re: love-android-sdl2 (native, 0.9.0)

Posted: Mon Jan 27, 2014 3:43 pm
by TangZero
Ranguna259 wrote:
slime wrote:
Ranguna259 wrote:Aperantly the Android API has gesture detection built in, can you guys check if you can implement something like this ?
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'.
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.

What do you think ?
It's really hard! :(

Re: love-android-sdl2 (native, 0.9.0)

Posted: Mon Jan 27, 2014 7:27 pm
by fysx
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.

Re: love-android-sdl2 (native, 0.9.0)

Posted: Mon Jan 27, 2014 8:45 pm
by jjmafiae
Are there any known unoptimized spots in this android port?

Re: love-android-sdl2 (native, 0.9.0)

Posted: Mon Jan 27, 2014 9:12 pm
by TangZero
jjmafiae wrote:Are there any known unoptimized spots in this android port?
I don't know any except the final size of the APK file when you build for both armeabiv and armeabiv7 archs.

Re: love-android-sdl2 (native, 0.9.0)

Posted: Mon Jan 27, 2014 9:30 pm
by fysx
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.

Re: love-android-sdl2 (native, 0.9.0)

Posted: Tue Jan 28, 2014 7:15 pm
by Ranguna259
TangZero wrote: It's really hard! :(
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.
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.
This is what I have so far for zooming in and out on a rectangle ( not tested ):
Image
Image
(original var is the original rectangle, without zoom)

Re: love-android-sdl2 (native, 0.9.0)

Posted: Tue Jan 28, 2014 9:24 pm
by Ranguna259
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)

Posted: Tue Jan 28, 2014 10:31 pm
by fysx
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.