| View previous topic :: View next topic |
| Author |
Message |
Neizan
Joined: 31 Oct 2007 Posts: 10
|
Posted: Fri Nov 02, 2007 3:06 am Post subject: Analog joystick |
|
|
Hi,
I've just started in the PSP programming. I'm coding simple programs for learn step by step, searching for the net every question I have. But I can't find how to control when the joystick is used.
I know how control the other buttons:
| Code: | if(pad.Buttons & PSP_CTRL_UP){...}
if(pad.Buttons & PSP_CTRL_SQUARE){...}
...} |
but I haven't found anything about the joystick. I have found a function call:
| Code: | | sceCtrlSetSamplingMode(PSP_CTRL_MODE_ANALOG); |
but I don't know how exactly it works... or if it's just not related with the analog joystick.
Can anyone help me? |
|
| Back to top |
|
 |
Raphael

Joined: 17 Jan 2006 Posts: 646 Location: Germany
|
Posted: Fri Nov 02, 2007 3:15 am Post subject: Re: Analog joystick |
|
|
see pspsdk\src\samples\controller\basic
It shows everything you need to know. _________________ <Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki
Alexander Berl |
|
| Back to top |
|
 |
Ghoti
Joined: 31 Dec 2005 Posts: 288
|
|
| Back to top |
|
 |
Neizan
Joined: 31 Oct 2007 Posts: 10
|
Posted: Fri Nov 02, 2007 7:16 am Post subject: |
|
|
Raphael, thanks for your fast answer ^^
And Ghoti, thanks to you too, I've saved your tutorials for study them slowly. They seem very interesting.
See you |
|
| Back to top |
|
 |
|