![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on Help with....Updating numbers o.o within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Ok, I didn't know how to say it or what to classify my question as. What I want to know ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() |
Ok, I didn't know how to say it or what to classify my question as. What I want to know is how to make numbers update. I'm making a PSP calculator for myself. It works fine except for one problem. When I press X, instead of making the number go up, it prints it again. Lets say I wanted 4+5. It would go
1+0 2+0 3+0 4+0 4+1 4+2 4+3 4+4 4+5 It will print that with every key press. I want it to update one number. Heres what I have for code. Code:
while(1){
sceCtrlReadBufferPositive(&pad, 1);
if(pad.Buttons & PSP_CTRL_CROSS) {
i++;
printf("\n #1 is %i",i);
}
sceCtrlReadBufferPositive(&pad, 1);
if(pad.Buttons & PSP_CTRL_SQUARE) {
l++;
printf("\n #2 is %i",l);
}
if(pad.Buttons & PSP_CTRL_CIRCLE) {
break;
}
}
Help plooooooooooxxx |
|
|
|
|
#2 |
![]() |
__________________
[COLOR="DarkOrange"][B]Brad.[/B][/COLOR] [URL="http://forums.qj.net/showthread.php?t=111647"][B][COLOR="DarkRed"][I]Forum Policies[/I][/COLOR][/B][/URL] |
|
|
![]() |
| Tags |
| numbers , withupdating |
| Thread Tools | |
|
|