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 › upper case letter (capital letter) input
Page Index Toggle Pages: 1
upper case letter (capital letter) input (Read 679 times)
upper case letter (capital letter) input
Feb 7th, 2007, 4:35pm
 
i am using a simple key input:

char k;
k = (char)key;

or just

k

if i use an upper case letter (input with "shift") the letter disapears when i stop pressing the shift key. i guess processing then fills "k" with "shift".

is there any way to solve this problem?

thank you very much! help much appreciated...
Re: upper case letter (capital letter) input
Reply #1 - Feb 7th, 2007, 10:26pm
 
use the keyPressed() method instead, and only pay attention to the values when 'key' is not equal to CODED.
Re: upper case letter (capital letter) input
Reply #2 - Feb 10th, 2007, 7:32pm
 
that works!
thank you very much! great help!!
Page Index Toggle Pages: 1