THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/12/2003 at 08:32, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.503
Platform: Mac ;
Language(s) : C.O.F.F.E.E ;
---------
Hi.
I want to get mouse status (up, down) in my COFFEE expression. Then I have got following code from SDK documentation, and tried to execute it. But it does not work. What is wrong?
main(doc,op)
{
// Poll the mouse device, left mouse button
var state = GetInputState(BFM_INPUT_MOUSE, BFM_INPUT_MOUSELEFT);
// Check if the mouse button is depressed
if (state->GetData(BFM_INPUT_VALUE) == 0.0)
{
println("mouse up");
}
}