Description

Called when input device was added

Signature

device,added: free(Efl.Input.Device, efl_del);

C information

C usage

static void
on_efl_canvas_event_device_added(void *data, const Efl_Event *event)
{
    Efl_Input_Device *info = event->info;
    Eo *obj = event->object;
    Data *d = data;
 
    /* event hander code */
}
 
static void
setup_event_handler(Eo *obj, Data *d)
{
    efl_event_callback_add(obj, EFL_CANVAS_EVENT_DEVICE_ADDED, on_efl_canvas_event_device_added, d);
}