Lines Matching defs:event
113 static bool ssam_kbd_is_input_event(const struct ssam_event *event)
115 if (event->command_id == SURFACE_KBD_CID_EVT_INPUT_GENERIC)
118 if (event->command_id == SURFACE_KBD_CID_EVT_INPUT_HOTKEYS)
124 static u32 ssam_kbd_event_fn(struct ssam_event_notifier *nf, const struct ssam_event *event)
133 if (shid->uid.category != event->target_category)
136 if (shid->uid.target != event->target_id)
139 if (shid->uid.instance != event->instance_id)
142 if (!ssam_kbd_is_input_event(event))
145 hid_input_report(shid->hid, HID_INPUT_REPORT, (u8 *)&event->data[0], event->length, 0);
259 shid->notif.event.reg = SSAM_EVENT_REGISTRY_SAM;
260 shid->notif.event.id.target_category = shid->uid.category;
261 shid->notif.event.id.instance = shid->uid.instance;
262 shid->notif.event.mask = SSAM_EVENT_MASK_NONE;
263 shid->notif.event.flags = 0;