Re: [AD] Android Joysticks (patch)

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


I see. Well, let's not worry about it too much for this if it's a major pain. The Internet does suggest we could use runtime loading (i.e. make two classes, as you said, and then load them at runtime depending on what version we want), but that's something we can bolt on top of the current code when time allows.

-SL

On 12/22/2014 08:20 PM, Trent Gamblin wrote:
One thing I could try (if I had a 2.x device) would be inheriting all the
classes that are only in 3.x and defining the constants. Dummy classes on
2.x... dunno if that'll work for sure.

-----Original Message-----
From: Trent Gamblin [mailto:trent@xxxxxxxxxx]
Sent: December 22, 2014 9:13 PM
To: 'Allegro Development'
Subject: Re: [AD] Android Joysticks (patch)

I'm sure there are cheap devices with Android 1.x on them too. Java doesn't
have conditional compilation though. And it has one class per file so the
only way to do it would be duplicating the AllegroSurface and KeyListener
classes. At that point the user is better off doing that themselves if they
need to support 2.x.

-----Original Message-----
From: SiegeLordEx [mailto:slabode@xxxxxxxxxx]
Sent: December 22, 2014 9:09 PM
To: alleg-developers@xxxxxxxxxx
Subject: Re: [AD] Android Joysticks (patch)

On 12/22/2014 02:36 PM, Trent Gamblin wrote:
The drawback of this patch and hotplugging is it requires Android 3.1
for the analog stick code in AllegroSurface.java. Personally I don't
think it matters as it's been a few years since anyone used anything
but
Android 4.0.
But I'm requesting feedback nonetheless.

A person on IRC mentioned that there still exist a few (cheap) tables with
Android 2.x on them. I'm not at all familiar with the Android code, but is
it possible to do some conditional compilation for this stuff? I don't know
how much support Java has for that...

-SL

----------------------------------------------------------------------------
--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
--
https://lists.sourceforge.net/lists/listinfo/alleg-developers


----------------------------------------------------------------------------
--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
--
https://lists.sourceforge.net/lists/listinfo/alleg-developers


------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net






Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/