By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,515 Members | 1,175 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,515 IT Pros & Developers. It's quick & easy.

change wii remote keys to tab keypress

P: 3
helllo.. guys

I am creating a website for nintendo wii .. and what i want to do is use the wii remote controls up/down/right/left keys to behave like the TAB key works on the PC... Like when you press tab key it takes you to the next links, images e.t.c..

so , please can any one help me with this it would nice if i could do it in javascript..


Thanks...
Jul 31 '09 #1
Share this Question
Share on Google+
5 Replies


Expert 10K+
P: 11,448
This is the Java forum; Java and Javascript are two different language; do you want me to move your thread to the Javascript forum?

kind regards,

Jos (moderator)
Jul 31 '09 #2

P: 3
oo.. sorry for that .. can you jst move it to the javascript forum..

Thanks..
Jul 31 '09 #3

gits
Expert Mod 5K+
P: 5,390
hmmmm ... you cannot really react on a specific device ... because javascript has no ability to differ between a keyboard or a wii-remote. but you could try to simulate the behaviour ... so which keyevents are triggered when you press the keys in question? please show what you have done so far.

kind regards
Jul 31 '09 #4

iam_clint
Expert 100+
P: 1,208
You can use something like
http://javascript.internet.com/misce...cter-code.html

To show you the key code that the wii uses.
Jul 31 '09 #5

P: 3
actually just started working on it these are the codes for the wiimote buttons..
just want to say some thing for e.g - e.keycode== 175 start focus or is there any tabing option..
Expand|Select|Wrap|Line Numbers
  1. document.onkeypress = function(e) {
  2.    if (e.keyCode == 175 || e.keyCode == 176 || e.keyCode == 178 || e.keyCode == 177){
  3.     alert("pressing keys")
  4.      return false;
  5.    }
  6. };
Aug 1 '09 #6

Post your reply

Sign in to post your reply or Sign up for a free account.