create_mouse_click_sensor to detect right button click

22 February 2016 20:13 #7632
Hi guys,

is it possible to use the mouse click sensor to detect right button click?
observing the values of the sensor manifold's callback arguments i cant make a difference.

24 February 2016 12:04 #7666

You can check the sensor "payload" field. It contains event.which data:
0 - left button
1 - middle button
2 - right button

You should use get_sensor_payload function to get a payload data.
Blend4Web developer
25 February 2016 22:59 #7749
Thank you!
Please register or log in to leave a reply.