Well, the reason I won't do homebrew, simply, is because I can't. As you notice I have the official firmware installed, and because I don't have $40 to shell out for a Pandora's battery, I can't get one. And before you tell me to make one: I tried once already, and now my PSP's battery doesn't work half of the time. When I go to turn it on, if it doesn't load (the power light always turns on), then I have to take it out and flick it. After I put it back in it almost always works.
Anyways, back to the topic at hand, I tried adding LEFT and RIGHT (as you'll see in the code below), but it didn't work. Any suggestions?
This is the javascript code I'm running:
Code:
var browser = navigator.appName;
if (browser == "Microsoft Internet Explorer") {
document.onkeydown=kpressed_IE;
} else {
document.onkeydown=kpressed_others;
}
function kpressed_IE(e) {
if (!e) var e = window.event;
if (e.keyCode) {
keycode = e.keyCode;
if ((keycode == RIGHT) || (keycode == LEFT)) {
window.event.keyCode = 0;
}
} else {
keycode = e.which;
}
if (keycode == RIGHT) {
nextPage(1);
return false;
} else if (keycode == LEFT) {
nextPage();
return false;
}
}
function kpressed_others(e) {
if (e.which) {
keycode = e.which;
} else {
keycode = e.keyCode;
}
if (keycode == RIGHT) {
nextPage(1);
return false;
} else if (keycode == LEFT) {
nextPage();
return false;
}
}