On 08/06/2015 at 06:22, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform:
Language(s) :
---------
Hello,
I am trying to check if a modifierkey is pressed when I run a coffee Script.
I tried this code:
var bc = new(BaseContainer);
var state = bc->GetInputState(BFM_INPUT_KEYBOARD, BFM_INPUT_CHANNEL);
But That doesnt work.
With Python I use this Code which Works:
bc = c4d.BaseContainer()
if c4d.gui.GetInputState(c4d.BFM_INPUT_KEYBOARD,c4d.BFM_INPUT_CHANNEL,bc) :
print "Qualifier Bitwise:",bc[c4d.BFM_INPUT_QUALIFIER]
Is there a way to check if a modifierkey is pressed when the Coffee-script gets fired?