Re: [AD] Ouya controller support

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


Op 13-07-13 21:13, Trent Gamblin schreef:
Slight problem here. Peter, is it possible to do hotplugging without sys/timerfd.h? It’s not in the latest NDK (or earlier.) Without it the joysticks eventually shut off for power saving and then the only thing you can do is force close the game.

Trent


The Linux kernel of Android should /probably/ still support the ioctl system calls, so we could just copy the header(s) from a desktop linux and try those. Otherwise, if that fails, we'll have to set up our own timer and poll /dev/input/eventXXX with glob() .  hope we won't heed to, but there's always the hidraw interface as well,... Then again we may need hidraw fpr mapping of the player number to the joystick, as the OUYA event interface doesn' t seem to support LED IO... 

Kind Regards,

B.



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