On 12/10/2015 at 06:50, xxxxxxxx wrote:
I want to get the character that the user pressed on the keyboard.
I am using some code posted here on the forum, but the value is always > 128.
How to get the character the user pressed?
channel = bc.GetLong(c4d.BFM_INPUT_CHANNEL)
print "channel: ", channel
if channel<128: # ascii key code
chr = str(unichr(channel))
print chr
if chr=='B':
return True