PDA

View Full Version : Mouse button clicked checking



Phinehas
10-31-2010, 10:45 PM
Hi,

Can WebGL detect the clicked mouse button (left, middle, and right), since I want to do some rotation and zoom in/out and would like to implement them with mouse buttons event?

wglb
11-01-2010, 09:42 AM
WebGL can't but JavaScript can: http://www.w3schools.com/jsref/dom_obj_event.asp
and example: http://learningwebgl.com/blog/?p=1253