<vizact>.onsensordown

Registers a function to handle sensor down events

 

<vizact>.onsensordown(
    sensor    
    button    
    func    
    *args    

)

 

sensor

The sensor object to handle


button

The button on the sensor to handle


func

The function to call when the sensor button is pressed


*args

The arguments to pass to the function


Remarks

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

Return Value

None