Vizard 8 » Command Index » Vizard modules » viz » <viz>.getNumHandlers
8.0

<viz>.getNumHandlers

Returns the number of handlers listening for the event

<viz>.getNumHandlers(  
eventID  
)  
eventID
An event ID

Remarks

This command will return the number of event handlers registered for the specified event.

Return Value

Integer >= 0

Example

num = viz.getNumHandlers(viz.KEYDOWN_EVENT)
print(num,'handlers listening for key presses')

See also

<viz>.getCurrentEvent
<viz>.getEventID
<viz>.getEventName
<viz>.postEvent
<viz>.postFunctionCall
<viz>.sendEvent