<vizact>.onkeyup

Registers a function to handle key up events

 

<vizact>.onkeyup(
    key    
    func    
    *args    

)

 

key

The key to handle


func

The function to call when the key is released


*args

The arguments to pass to the function


Remarks

When the specified key is released, the given function will be called with the passed arguments.

Return Value

None

Example

node = viz.add('ball.wrl')

#Translate the ball up when up arrow released
vizact.onkeyup(viz.KEY_UP,node.setPosition,[0,1,0],viz.REL_PARENT)