Bennu Game Development

English Forums => Platforms => Android => Topic started by: handsource-dyko on August 01, 2012, 11:43:22 AM

Title: os_id for android
Post by: handsource-dyko on August 01, 2012, 11:43:22 AM
I've been looking in the sources of bennu and saw that there now exists a OS_ID constant for IOS.  Does the Android version use OS_LINUX as value for OS_ID? I may want to do some tests with malvado and mod_multi on the galaxy S2 some time and want to hack some touch controls into game. I'll have mod_multi for windows already, so I can easily prepare for an Android version when feel like to. Also does the Android port support Icontrolpad or keyboard emulation?
Title: Re:os_id for android
Post by: FreeYourMind on August 01, 2012, 12:13:24 PM
yes they are.... look again


OS_ID =  IOS
Title: Re:os_id for android
Post by: handsource-dyko on August 01, 2012, 02:52:34 PM
So Android is treated as IOS? That's funny.  ;D Maybe future versions should have an OS_ID=OS_ANDROID?
Title: Re:os_id for android
Post by: panreyes on August 01, 2012, 03:42:47 PM

In this file Android is referenced as OS_ANDROID. May not be the same. I don't understand C xDhttp://code.google.com/searchframe#FSHwt1Eimcc/trunk/core/bgdrtm/src/misc.c&q=os_id%20package:bennugd-monolithic%5C.googlecode%5C.com (http://code.google.com/searchframe#FSHwt1Eimcc/trunk/core/bgdrtm/src/misc.c&q=os_id%20package:bennugd-monolithic%5C.googlecode%5C.com)
Title: Re:os_id for android
Post by: handsource-dyko on August 01, 2012, 05:05:36 PM
Maybe a source from the monolythic version? I couldn't find in the repo browser, where I normally look.
OS_IOS is reconized, but OS_ANDROID gives a token error, wich I expected.
Title: Re:os_id for android
Post by: FreeYourMind on August 01, 2012, 06:49:57 PM
sorry I have a mistake, ios id exist because it cames from bennu oficial version, android id I think josebita don't implement yet the definition
Title: Re:os_id for android
Post by: josebita on August 01, 2012, 06:59:03 PM
In my monolithic branch, OS_ANDROID should work. Since you have to compile with the official version, you can use OS_ID==1003, which is the value for OS_ANDROID.

I don''t typically ask Splinter to add numeric codes until the port is, at least, usable.