Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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
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)); // ... }
On 05/04/2003 at 00:47, xxxxxxxx wrote:
Thanks - that works. Cheers - Steve