After searching tirelessly, I have come to a dead end in finding documentation on how to handle right click events in three.js. Can anyone provide guidance on accessing a right click event with the mouse? The current code snippet I am using is as follows:
function onDocumentMouseDown(event)
{
mouseDown = true;
event.preventDefault();
mouseX = event.clientX - windowHalfX;
mouseY = event.clientY - windowHalfY;
document.addEventListener('mousemove', onDocumentMouseMove, false);
document.addEventListener('mouseup', onDocumentMouseUp, false);
document.addEventListener('mouseout', onDocumentMouseOut, false);
}
While this works effectively for left and middle clicks, I need to separate the right click event to trigger alternate functionalities. How can I achieve this differentiation between left and right click actions?