Page 3 of 33

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

Posted: Fri Jan 17, 2014 7:10 pm
by Davidobot
Does this only work on the main Phone Storage, I can't seem to get it to work from Card.

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

Posted: Fri Jan 17, 2014 8:05 pm
by Ranguna259
Yep documentation would be good but this is still experimental and I'm guessing that some functions might be changed once fysx ports slimes touch API to this port so we'll just have to wait a little bit to write some docs on this.

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

Posted: Fri Jan 17, 2014 8:30 pm
by Enigma
Ranguna259 wrote:Yep documentation would be good but this is still experimental and I'm guessing that some functions might be changed once fysx ports slimes touch API to this port so we'll just have to wait a little bit to write some docs on this.
Yea I get that but how are we suppose to experiment with it when we don't know what functions we can use? Just saying it would be nice.

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

Posted: Fri Jan 17, 2014 8:41 pm
by Ranguna259
Hmmm... I found these functions somewhere I don't remember.
Basicly

Code: Select all

love.fingerpressed(x,y,b)
love.fingerreleased(x,y,b)
love.fingermotion(x,y,b)
Those are callbacks, dunno what fingermotion does and I don't know what 'b' is either (maybe multitouch ?), fysx could you shed some light onto us here ?

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

Posted: Fri Jan 17, 2014 8:44 pm
by jjmafiae
also if someone want's to know:

linux._os returns "Linux"

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

Posted: Fri Jan 17, 2014 8:55 pm
by Ranguna259
Yeah I've already posted an issue on the bitbucket's repo about this, so let's patiently wait :megagrin:

About key outputs: the Menu/Settings key returns "Menu", the return/back key returns "escape", I still don't know what the search key return because I don't have any phone with a search key, as soon as I get one I'll test it.

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

Posted: Fri Jan 17, 2014 9:29 pm
by fysx
Davidobot wrote:Does this only work on the main Phone Storage, I can't seem to get it to work from Card.
When writing files everything is written into the internal storage (see http://developer.android.com/guide/topi ... orage.html for details). I plan to add a config value which let's you specify whether your writable directory should be the internal or external storage. Note internal and external storage have nothing to do with sd-cards. It's just whether the directory can be accessed from other apps such as file managers, etc. Also it does not have anything todo where your app is being installed.
Ranguna259 wrote:

Code: Select all

love.fingerpressed(x,y,b)
love.fingerreleased(x,y,b)
love.fingermotion(x,y,b)
Those are callbacks, dunno what fingermotion does and I don't know what 'b' is either (maybe multitouch ?), fysx could you shed some light onto us here ?
Yes, b is the actual "finger".

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

Posted: Fri Jan 17, 2014 9:31 pm
by jjmafiae
This is the best thing in the entire universe.

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

Posted: Fri Jan 17, 2014 9:33 pm
by slime
fysx wrote:Yes, b is the actual "finger".
When are you going to replace that with the love.touch stuff? :)

[also, for anyone using current or future touch APIs, the touch/finger ID is only valid/unique for the duration of the touch press.]

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

Posted: Fri Jan 17, 2014 9:55 pm
by Ranguna259
slime wrote:
fysx wrote:Yes, b is the actual "finger".
When are you going to replace that with the love.touch stuff? :)

[also, for anyone using current or future touch APIs, the touch/finger ID is only valid/unique for the duration of the touch press.]
What's the ID variable type ? Number ? If so the function wont rearrange the IDs if a finger stops touching the screen, right (if I touch the screen with two fingers and lift the first finger the ID of the second one will still be "2" or will it change to "1", I just realy need to be sure :P ) ?