Skip to content

Events


addEvent

Info

Currently, supports CLICK_EVENT, HOVER_EVENT, MOUSE_IN_EVENT & MOUSE_OUT_EVENT Events.

  • Use: To add a feedback event to an element

  • Definition: addEvent(String id ,int event, void (*callBack_func)())

  • Parameters:

    • String id : ID of the element as a String
    • int event : The Event to attach ( CLCIK_EVENT, HOVER_EVENT, MOUSE_IN_EVENT, MOUSE_OUT_EVENT )
    • void callBack_func() : The CallBack function to be executed when the event is triggered (*Accepts only void functions)
  • Returns: Nothing


handleEvents

Note

This function should be called in void loop() for monitor events

  • Use: To listen for event triggers

  • Definition: addEvent(String id ,int event, void (*callBack_func)())

  • Parameters:

    • String id : ID of the element as a String
    • int event : The Event Name to attach ( CLCIK_EVENT, HOVER_EVENT, MOUSE_IN_EVENT, MOUSE_OUT_EVENT )
    • void callBack_func() : The CallBack function to be executed when the event is triggered (*Accepts only void functions)
  • Returns: Nothing