<vizact>.whilekeydown

Registers a function to handle a key being held down

 

<vizact>.whilekeydown(
    key    
    func    
    args    

)

 

key

The key to handle


func

The function to call while the key is down


args

The arguments to pass to the function


Remarks

While the specified key is down the given function will be called

Return Value

None

Example

#Move the viewpoint forward while the up arrow is held down
vizact.whilekeydown(viz.KEY_UP,viz.move,0,0,0.1)