Thursday, March 8, 2012

Android Controller GUI

After spending a fair amount of time looking into using a PS3 controller, I decided it's just not worth it.  I could feasibly sink 2 months into building a comprehensive library that would work.  Instead I started looking into using my Android phone as the primary controller and got carried away.  The last couple of nights have been spent buried in code.  I've just now finished the initial elements of the GUI.


The above is a screenshot of the Android emulator running my code.  Each foot and the head have individual controllers.  Therefor if the user desires they can move each limb independently.  The large semi circle is what you see when you press one of the control nodes.  It shows the valid range of motion for the node.  If the user drags their finger outside of the valid area, the control node follows as closely as it can, but never goes outside the range.  Also note this supports multi-touch, so you can control multiple limbs simultaneously.

Still missing is a large circle in the center of the body for controlling global movement, like walking.  As well as some icons along the bottom for predefined moves like a swipe or a shake fist.

As for the back end, I still need to implement Bluetooth pairing and communication.

No comments:

Post a Comment