We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › VK_LOCATION_x available in Processing
Page Index Toggle Pages: 1
VK_LOCATION_x available in Processing? (Read 526 times)
VK_LOCATION_x available in Processing?
Sep 19th, 2006, 5:24am
 
Java's KeyEvent class supports the detection of keys on both the right and left sides of the keyboard (Alt, Shift, Ctrl) with getKeyLocation(), which returns (among other things) VK_LOCATION_LEFT and VK_LOCATION_RIGHT.  Does Processing preserve this information somehow, in the keyCode variable, perhaps?  What is a way to accomplish the detection of the "side" of certain keys in Processing?
Re: VK_LOCATION_x available in Processing?
Reply #1 - Sep 19th, 2006, 6:33am
 
override the keyPressed(KeyEvent e) (or whatever key method you wish to catch) the same way you would in any other java application. just know that unless you call super.keyPressed(e) or you will disable the p5 key methods and variables.
Page Index Toggle Pages: 1