I wrote this for for use in games and thought it maybe useful for others.
http://devrc.org/pub/pspctrl/ (has eboot, makefile and source)
Have fun.
PSP Controller code with sensitivity.
-
- Posts: 328
- Joined: Sun Jun 03, 2007 10:05 pm
This is just plain WEIRD. The "sensitivity" means it won't return a key until it's been held a certain amount of time, but not if held too long... like a bad debounce routine. It also returns the keys as a string for a single key - no support for multiple keys at all, not to mention making it a string makes checking which key later a pain in the butt.
In conclusion, an odd bit of example code, but not really useful for anything I can think of. Glance over the code, but don't use it.
In conclusion, an odd bit of example code, but not really useful for anything I can think of. Glance over the code, but don't use it.
You are right, however, this simulates sensitivity, I don't think there's any other way to measure it other than timing (at least not on psp), since that requires voltage variation or some mechanical feedback being interpreted by the kernel.
If there is something like that I'd like to check it out for sure.
If there is something like that I'd like to check it out for sure.
Steering a moving vehicle maybe, but nobody has written any game of
near enough quality I've seen that would call for attention in the area
of player control over improvement in other areas. Not for a game involving a vehicle at least.
There was a nice 3D homebrew racing car demo, but I don't remember seeing the full game.
I'm glad we didn't get analogue buttons on the PSP.
It just isn't the way arcade buttons are meant to be.
It's Yes or No. You can keep the Maybe for Human relationships.
near enough quality I've seen that would call for attention in the area
of player control over improvement in other areas. Not for a game involving a vehicle at least.
There was a nice 3D homebrew racing car demo, but I don't remember seeing the full game.
I'm glad we didn't get analogue buttons on the PSP.
It just isn't the way arcade buttons are meant to be.
It's Yes or No. You can keep the Maybe for Human relationships.
If not actually, then potentially.