Hi,
I have this edited code snippet from Cineversity. The example is using keyboard but I'm trying to access the mouse click. Should I have additional settings for the mouse inputs? Thank you for looking at my problem.
# This one works
if id in all_button_ids:
self.Close()
return True
# This one does not
bc = c4d.BaseContainer()
if c4d.gui.GetInputState(c4d.BFM_INPUT_MOUSE,c4d.BFM_INPUT_MOUSELEFT,bc):
if bc[c4d.BFM_INPUT_VALUE]==1:
self.Close()
return True