On 14/03/2013 at 00:35, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R14
Platform: Windows ;
Language(s) : C++ ;
---------
Hi Folks,
I'm trying to get the SHIFT key while it's pressed for a GeUserArea, in the InputEvents member. I've tried all sorts of variations of the following:
BaseContainer Qualifier = NULL;
if(GetInputState(BFM_INPUT_KEYBOARD, BFM_INPUT_CHANNEL, Qualifier))
{
GePrint("Qual called.."); // this sometimes prints
if(Qualifier.GetLong(BFM_INPUT_QUALIFIER) & QSHIFT)
{
GePrint("SHIFT pressed.."); // this never prints
return TRUE;
}
}
I can get other keys to work - just none of the qualifiers. Where have I gone wrong?
Cheers,
WP.