<vizact>.onmousedown

Registers a function to handle mouse down events

 

<vizact>.onmousedown(
    button    
    func    
    *args    

)

 

button

The mouse button to handle


func

The function to call when the mouse button is pressed


*args

The arguments to pass to the function


Remarks

This command will call the given function when the specified mouse button is pressed.

Return Value

None

Example

#Quit the simulation when the right mouse button is pressed
vizact.onmousedown(viz.MOUSEBUTTON_RIGHT,viz.quit)