Hello! I've successfully been able to detect modifier keys for my Phyton script, but can't figure out how to use "BFM_INPUT_ASC" to detect the letters "x", "y", and "z" (or any other character, for that matter). Where can i query this within the code below? Thank you!
pressedKey = 'none'
bc = c4d.BaseContainer()
if c4d.gui.GetInputState(c4d.BFM_INPUT_KEYBOARD,c4d.BFM_INPUT_CHANNEL,bc):
if bc[c4d.BFM_INPUT_QUALIFIER] & c4d.QSHIFT:
print("SHIFT PRESSED")
pressedKey = "shift"
if bc[c4d.BFM_INPUT_QUALIFIER] & c4d.QCTRL:
print("CONTROL PRESSED")
pressedKey = "control"
if bc[c4d.BFM_INPUT_QUALIFIER] & c4d.QALT:
print("ALT PRESSED")
pressedKey = "alt"