<vizact>.whilemousedown

Registers a function to handle a mouse button being held down

 

<vizact>.whilemousedown(
    button    
    func    
    args    

)

 

button

The mouse button to handle


func

The function to call while the mouse button is down


args

The arguments to pass to the function


Remarks

While the specified mouse button is down the given function will be called

Return Value

None

Example

#Move the viewpoint forward while the left mouse button is down
vizact.whilemousedown(viz.MOUSEBUTTON_LEFT,viz.move,0,0,0.1)