Skip to: Site menu | Main content


Welcome to PSP-Programming.com, a place for developers to get together.

Welcome to the forums. Here you can find other user tutorials as well as homebrew releases and the source code repository. You can also ask for help with your code here and post your own homebrew!

PSP-Programming.com Forums
February 08, 2012, 06:42:01 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

News: Join our IRC channel: ##psp-programming on freenode
Home Help Search Shop Login Register
Digg This!
Pages: 1 ... 3 4 [5]
Print
Author Topic: [Tutorial] Full Game Part 1 - Menu  (Read 31490 times)
coolguy5678
Newbie
*

Karma: +0/-1
Offline Offline

Posts: 5
203.17 points

View Inventory
Send Money to coolguy5678

View Profile
« Reply #60 on: January 16, 2007, 01:04:53 AM »

I have a tip to avoid key-repeat: The way you're doing it, you can press down and it will move down once, but then you can press another button while down is still pressed and it'll move down again because the SceCtrlData has changed.

I suggest doing this:

Code:
unsigned long keysPressed = (pad.Buttons ^ oldpad.Buttons) & pad.Buttons ;
keysPressed will then be a bunch of bit-flags, like pad.Buttons, only it contains the buttons that have just been pressed. Therefore, you can do this:

Code:
if (keysPressed & PSP_CTRL_CROSS) {...}
to check if X has been pressed (it will only be true once for each button press).
Logged


bytebuster
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2
173.06 points

View Inventory
Send Money to bytebuster

View Profile
« Reply #61 on: May 22, 2007, 09:35:10 PM »

hello everyone...

i have a problem with the menu tutorial. my compiler works and i got the EBOOT.PBP but if i want to start the menu on my psp i just get a blackscreen and the psp switches off...

my firmware is 3.4 OE-A
what can i do to start the program?

Greetz Olli
Logged
Insert_Witty_Name
Global Moderator
Hero Member
*

Karma: +149/-17
Offline Offline

Posts: 1602
1141.66 points

View Inventory
Send Money to Insert_Witty_Name

View Profile WWW
« Reply #62 on: May 22, 2007, 11:07:28 PM »

Don't forget to transfer the images across with the EBOOT.
Logged

Coder formerly known as:

Check out my homebrew & C tutorials at http://insomniac.0x89.org
Last updated 6th Oct 06 - Tutorial 2 added.
bytebuster
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2
173.06 points

View Inventory
Send Money to bytebuster

View Profile
« Reply #63 on: May 23, 2007, 12:31:33 AM »

ok.. now it works... thanks!

*lol*
Logged
Kahori
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 42
4311.90 points

View Inventory
Send Money to Kahori

View Profile
« Reply #64 on: June 22, 2011, 06:42:41 AM »

Thanks this tutorial is great Very Happy!
Now my application works  much better!
Logged
Pages: 1 ... 3 4 [5]
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.225 seconds with 28 queries.
Sister Sites: Guitar Hero 4   BrokeniTouch.com