I'm trying to get the keyboard plugin to detect left/right shift button presses.
how-do-i-detect-left-shift-right-shift_t106884
This here says it can be done in Chrome:
http://stackoverflow.com/questions/2297 ... up-in-chro
This test here proves that, yes, keycode is 16 for both SHIFT keys, but Javascript *can* handle location via the constant DOM_KEY_LOCATION_ which can be "standard", "left", "right" or "numpad".
It's a javascript question, if only I knew how to modify the keyboard plugin to add this functionality:
( window.onkeydown = function(event)
{
var o = 'event = onkeydown, which = ' + event.which + ', location = ';
switch(event.location)
{
case KeyboardEvent.DOM_KEY_LOCATION_STANDARD: o += 'standard'; break;
case KeyboardEvent.DOM_KEY_LOCATION_NUMPAD: o += 'numpad'; break;
case KeyboardEvent.DOM_KEY_LOCATION_LEFT: o += 'left'; break;
case KeyboardEvent.DOM_KEY_LOCATION_RIGHT: o += 'right'; break;
}
)
I've built the game around "A" and "right cursor key" but my testers are complaining about accessibility.