Lines Matching refs:button_event
492 struct pyra_mouse_event_button const *button_event; in pyra_keep_values_up_to_date() local
496 button_event = (struct pyra_mouse_event_button const *)data; in pyra_keep_values_up_to_date()
497 switch (button_event->type) { in pyra_keep_values_up_to_date()
499 profile_activated(pyra, button_event->data1 - 1); in pyra_keep_values_up_to_date()
502 pyra->actual_cpi = button_event->data1; in pyra_keep_values_up_to_date()
513 struct pyra_mouse_event_button const *button_event; in pyra_report_to_chrdev() local
518 button_event = (struct pyra_mouse_event_button const *)data; in pyra_report_to_chrdev()
520 switch (button_event->type) { in pyra_report_to_chrdev()
523 roccat_report.type = button_event->type; in pyra_report_to_chrdev()
524 roccat_report.value = button_event->data1; in pyra_report_to_chrdev()
532 if (button_event->data2 == PYRA_MOUSE_EVENT_BUTTON_PRESS) { in pyra_report_to_chrdev()
533 roccat_report.type = button_event->type; in pyra_report_to_chrdev()
534 roccat_report.key = button_event->data1; in pyra_report_to_chrdev()