hsncorrosion Posted January 6, 2008 Share Posted January 6, 2008 I have no idea how to find the rkeys to use up down left and right Any ideas? I've looked online and could not find it currently its set to WASD <script type="text/javascript"> <!-- function getkey(e) { if (window.event) return window.event.keyCode; else if (e) return e.which; else return null; } function redir(key) { var rkey = getkey(key); if(rkey == 119) { document.location.href="$move_up"; } if(rkey == 115) { document.location.href="$move_down"; } if(rkey == 97) { document.location.href="$move_left"; } if(rkey == 100) { document.location.href="$move_right"; } } //--> </script> Quote Link to comment Share on other sites More sharing options...
911alertme Posted January 6, 2008 Share Posted January 6, 2008 I'm no Javascript expert, but I think "rkey == x" where x = the key pressed on the keyboard. EDIT: I just read your post thoroughly and this won't help you. Quote Link to comment Share on other sites More sharing options...
SomeoneE1se Posted January 6, 2008 Share Posted January 6, 2008 what's the point? your answer is here http://home.att.net/~gobruen/con/ascii.html use the decimal number but I still want to know the point of this Quote Link to comment Share on other sites More sharing options...
911alertme Posted January 6, 2008 Share Posted January 6, 2008 I found it. http://www.jimprice.com/ascii-0-127.gif You need 28,29,30,31 Quote Link to comment Share on other sites More sharing options...
hsncorrosion Posted January 6, 2008 Author Share Posted January 6, 2008 thanks It's for an rpg im working on for psp. But if I have buttons on the page it wastes space, this will let them use their psp directional buttons Quote Link to comment Share on other sites More sharing options...
hsncorrosion Posted January 6, 2008 Author Share Posted January 6, 2008 odd works with letter keys but nothing when I try arrows :/ Why is this not working? Is there another way? php? Quote Link to comment Share on other sites More sharing options...
Deveant Posted January 6, 2008 Share Posted January 6, 2008 odd works with letter keys but nothing when I try arrows :/ Why is this not working? Is there another way? php? flash? php is totaly the worng language, its server side nothing more. How about AJAX? Quote Link to comment Share on other sites More sharing options...
SomeoneE1se Posted January 6, 2008 Share Posted January 6, 2008 psp != PC keyboard Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.