Ouya / Android : button mapping bitwise

Posted by scorvi on Game Development See other posts from Game Development or by scorvi
Published on 2013-10-18T16:51:08Z Indexed on 2013/10/20 10:21 UTC
Read the original article Hit count: 337

Filed under:
|

I am programming a game with the Gameplay3d Engine. But the Android site has no gamepad support and that is what I need to port my game to Ouya. So I implemented a simple gamepad support and it supports 2 gamepads.

So my problem is that I put the button stats in a float array for every gamepad. But the Gameplay3d engine saves their stats in a unsigned int _buttons variable. It is set with bitwise operations and I have no clue how to translate my array to this.

© Game Development or respective owner

Related posts about android

Related posts about ouya