forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Controller Kernel Library HELP!

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
STREGA



Joined: 20 Jun 2005
Posts: 9

PostPosted: Sun Jul 10, 2005 5:22 am    Post subject: Controller Kernel Library HELP! Reply with quote

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
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sun Jul 10, 2005 5:36 am    Post subject: Reply with quote

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
View user's profile Send private message
STREGA



Joined: 20 Jun 2005
Posts: 9

PostPosted: Sun Jul 10, 2005 5:44 am    Post subject: Reply with quote

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
View user's profile Send private message
STREGA



Joined: 20 Jun 2005
Posts: 9

PostPosted: Sun Jul 10, 2005 5:52 am    Post subject: Reply with quote

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
View user's profile Send private message
STREGA



Joined: 20 Jun 2005
Posts: 9

PostPosted: Sun Jul 10, 2005 7:00 am    Post subject: Reply with quote

anyone that sees this and allso has no idea try looking at this http://www.psp.to/viewtopic.php?topic=7&forum=5
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Sun Jul 10, 2005 7:02 am    Post subject: Reply with quote

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
View user's profile Send private message
STREGA



Joined: 20 Jun 2005
Posts: 9

PostPosted: Sun Jul 10, 2005 8:31 am    Post subject: Reply with quote

ohh cool thx! sry didnt know what subversion was
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group