Page 1 of 1

GP2X and the Mouse Pointer

PostPosted: Fri Aug 17, 2007 11:29 pm
by ozziedave
Hi All,

Could somebody show me how to code for GP2X so that
the Mouse Pointer will show when I compile for GP2X.

Placed a couple of hot spots on a menu, then compiled
but the Mouse Pointer does not show up when the GP2X
is fired up.

Thanks

PostPosted: Sat Aug 18, 2007 2:31 am
by theta
im not sure if you can use the gp2x's joystick to control the mouse
but you can make a menu that uses the up and down keys to navigate
i've attached an example, it doesn't actually do anything but it shows the mechanics of making some kind of a menu for the gp2x
i did test it on a gp2x as well (with firmware 3.0)

Thanks a Heap

PostPosted: Sat Aug 18, 2007 5:38 am
by ozziedave
Hi theta,

Tried your Menu test on the GP2X and it works a treat. Still like to know if
a mouse pointer is possible though, but in the meantime i'm using your
Menu idea.

Cheers

Ozzie

PostPosted: Sat Aug 18, 2007 10:49 am
by motorollin
I don't see any reason why you couldn't create an actor with a single-frame animation of a mouse pointer and then set up controls to move it with the GP2X joystick.

PostPosted: Sat Aug 18, 2007 3:13 pm
by d-soldier
I agree... You could even use a variable to control it, like when you press "start" everything gets paused except the mouse-control, which due to "if" statements, follows the controls when the game is paused, instead of the player.