| View previous topic :: View next topic |
| Author |
Message |
STREGA
Joined: 20 Jun 2005 Posts: 9
|
Posted: Sun Jul 10, 2005 5:22 am Post subject: Controller Kernel Library HELP! |
|
|
| Ive installed the tool chain, sdk, and added my own graphics to nems hello world. But i cant figure out how to use the "Controller Kernel Library". Ive looked at a few source codes and played around with it but I cant make it work. could someone write a simple "if square is pushed display text" code. thx! |
|
| Back to top |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Sun Jul 10, 2005 5:36 am Post subject: |
|
|
| If you have the latest PSPSDK from Subversion there are several examples that use the controller, including one written specifically to demonstrate how to use the controller. |
|
| Back to top |
|
 |
STREGA
Joined: 20 Jun 2005 Posts: 9
|
Posted: Sun Jul 10, 2005 5:44 am Post subject: |
|
|
I have the 1.0+BETA. and i found the HTML that explains it a bit but i still cant figure it out. Im not shour how the buttons get deffined and then how to use them. this is the example I found on the 1.0+BETA | Code: | ctrl_data_t pad;
sceCtrlSetSamplingCycle(0);
sceCtrlSetSamplingMode(1);
sceCtrlReadBufferPositive(&pad, 1);
// Do something with the read controller data
| but I stiull have no idea how to set it up. |
|
| Back to top |
|
 |
STREGA
Joined: 20 Jun 2005 Posts: 9
|
Posted: Sun Jul 10, 2005 5:52 am Post subject: |
|
|
| I know you guys dont like stupid questions like this, Ive only programed in visual c so I really dont know what im doing yet. If anyone can recomend a form that can help me get started that would be a great help. |
|
| Back to top |
|
 |
STREGA
Joined: 20 Jun 2005 Posts: 9
|
|
| Back to top |
|
 |
Shine
Joined: 03 Dec 2004 Posts: 728 Location: Germany
|
Posted: Sun Jul 10, 2005 7:02 am Post subject: |
|
|
| As mrbrown says, take a look at the subversion version. If you don't know how to checkout, you can browse it. For example a buttons sample and an analog pad sample. |
|
| Back to top |
|
 |
STREGA
Joined: 20 Jun 2005 Posts: 9
|
Posted: Sun Jul 10, 2005 8:31 am Post subject: |
|
|
| ohh cool thx! sry didnt know what subversion was |
|
| Back to top |
|
 |
|