I've recently started fiddling around with the pspsdk, and ran into a little trouble. When I'm combining code from the examples cube.c (gu/cube) and controller.c (controller/basic) the responce time of the input is extremely slow, or even none at all.
My source can be found here: http://www.jlpro.nl/wacco/cube.c
The main thing is the following line:
Since I thought that the above was a little extreme, I did a divide by 10 first. Since that didn't seem to work I ended up with the above. Now, if you try really hard the vertex might change, but don't expect to much of it. Most of the time, it doesn't move at all.cursor_vertices[1].x = ((float) pad.Lx - 123);
If you replace that line with the following:
It does work, but extremely slow. Press the button, keep it pressed and wait... wait... wait... ah, there we go. Release it, wait... wait.. you get the idea.if(pad.Buttons != 0) {
if(pad.Buttons & PSP_CTRL_SQUARE) val2 = -2;
} else val2 = -1;
cursor_vertices[1].x = val2;
Anybody has an idea what I'm doing wrong? The lights on the vertexes (comes from lights.c (gu/lights) btw) work fluently, and I'm kinda clueless.
Thanks :)