This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3358-EP: Button control

Part Number: AM3358-EP

Tool/software: Linux

Hi all,

      In Am33x series, using input touch button to press key & released also its all creating one event . I need to split that one event into two for using One event for key is pressed & another event for key is released.Can you please share some suggestion for these ideas.

For more information:

In button_init ()

   touch_button_event->evbit[0] = BIT_MASK(EV_KEY);

   touch_button_event->keybit[BIT_WORD(KEY_F12)] | = BIT_MASK(KEY_f12);

In button_task()

   input_event(touch_button_event, EV_KEY, KEY_F12, 1);

   input_sync(touch_button_event);

   

input_report_key(touch_button_event,  KEY_F12, 0);

   input_sync(touch_button_event);