tuch screen d-pad

Started by yrahmo, September 09, 2012, 08:44:04 PM

Previous topic - Next topic

yrahmo


Hy everybody
wanted to know if tehre is any way to implement an d-pad in the touch screen.
it makes the fun double when we play, and your hand don't hide the hole scene.

is there any idea??
;)
thinks

EgonOlsen

Of course it's possible. You can blit it onto the screen like any other ui element. Just don't expect some magic dpad class to be available in jPCT. It's up to you to actually implement it. To blit ui elements, you can Framebuffer.blit(), touch coordinates can be obtained from the standard means that Android offers for this.

yrahmo

nice idea  ;)
i am working on it. thinks for the help.