name
plug ( )
None available
description
Plug is a handy method to handle incoming button events. To create a plug you have to implement a method that reacts on the events. To plug a method you need to give a device the method name, the event type you want to react on and the button. If your method is inside a class you have to give the plug a reference to it.
syntax
plug(i_object, i_methodName, i_eventType, i_input);
plug(i_methodName, i_eventType, i_input);
parameters
i_object
Object: the object with the method to plug
i_methodName
String: the name of the method that has to be plugged
i_eventType
constant: can be ControllIO.ON_PRESS, ControllIO.ON_RELEASE or ControllIO.WHILE_PRESS
i_input
int: the number of the button that triggers the plug
returns
None
usage
Web & Application
related