Detect modifier keys in command plugin?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/04/2003 at 14:52, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;---------
In a command plugin, how can I detect whether Ctrl, Shift, or Alt were pressed at the time the command was triggered?I'm wanting to have a clickable button whose behaviour is different if the modifier keys are pressed.
Cheers - Steve
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 04/04/2003 at 06:09, xxxxxxxx wrote:
Just use GetInputState() :
Bool MenuTest::Execute(BaseDocument *doc) { BaseContainer state; GetInputState(BFM_INPUT_MOUSE,BFM_INPUT_MOUSELEFT, state); Bool bShift = (state.GetLong(BFM_INPUT_QUALIFIER) & QSHIFT) != 0; Bool bCtrl = (state.GetLong(BFM_INPUT_QUALIFIER) & QCTRL) != 0; GePrint("shift: " + LongToString(bShift) + " ctrl: " + LongToString(bCtrl)); // ... }
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/04/2003 at 00:47, xxxxxxxx wrote:
Thanks - that works.
Cheers - Steve