Lines Matching defs:event

33      'normal' .... event sent when it happens
34 'filtered' .. event is not sent (but may be sent later)
35 'delayed' ... event is sent with wall-clock delay
50 3, 4 are fast clicks where the second event is delivered with a delay
54 4.1 is a special case with the same event sequence as 4 but we want to
55 filter the *release* event out, it's a button losing contact while being
58 7 and 8 are cases where the first event happens within the first timeout
59 but the second event is outside that timeout (but within the timeout of
60 the second event). These cases are handled by restarting the timer on every
61 event that could be part of a bouncing sequence, which makes these cases
93 debounce_event_to_str(enum debounce_event event)
95 switch(event) {
106 log_debounce_bug(struct fallback_dispatch *fallback, enum debounce_event event)
109 "invalid debounce event %s in state %s\n",
110 debounce_event_to_str(event),
185 debounce_is_up_handle_event(struct fallback_dispatch *fallback, enum debounce_event event, uint64_t time)
187 switch (event) {
198 log_debounce_bug(fallback, event);
206 debounce_is_down_handle_event(struct fallback_dispatch *fallback, enum debounce_event event, uint64_t time)
208 switch (event) {
210 log_debounce_bug(fallback, event);
226 log_debounce_bug(fallback, event);
234 debounce_is_down_waiting_handle_event(struct fallback_dispatch *fallback, enum debounce_event event, uint64_t time)
236 switch (event) {
238 log_debounce_bug(fallback, event);
251 log_debounce_bug(fallback, event);
260 debounce_is_up_delaying_handle_event(struct fallback_dispatch *fallback, enum debounce_event event, uint64_t time)
262 switch (event) {
269 log_debounce_bug(fallback, event);
281 debounce_is_up_delaying_spurious_handle_event(struct fallback_dispatch *fallback, enum debounce_event event, uint64_t time)
283 switch (event) {
291 log_debounce_bug(fallback, event);
307 debounce_is_up_detecting_spurious_handle_event(struct fallback_dispatch *fallback, enum debounce_event event, uint64_t time)
309 switch (event) {
314 * event time */
319 log_debounce_bug(fallback, event);
334 debounce_is_down_detecting_spurious_handle_event(struct fallback_dispatch *fallback, enum debounce_event event, uint64_t time)
336 switch (event) {
338 log_debounce_bug(fallback, event);
362 debounce_is_up_waiting_handle_event(struct fallback_dispatch *fallback, enum debounce_event event, uint64_t time)
364 switch (event) {
374 log_debounce_bug(fallback, event);
384 debounce_is_down_delaying_handle_event(struct fallback_dispatch *fallback, enum debounce_event event, uint64_t time)
386 switch (event) {
388 log_debounce_bug(fallback, event);
395 log_debounce_bug(fallback, event);
408 enum debounce_event event,
411 switch (event) {
424 log_debounce_bug(fallback, event);
433 enum debounce_event event,
438 if (event == DEBOUNCE_EVENT_OTHERBUTTON) {
445 debounce_is_up_handle_event(fallback, event, time);
448 debounce_is_down_handle_event(fallback, event, time);
451 debounce_is_down_waiting_handle_event(fallback, event, time);
454 debounce_is_up_delaying_handle_event(fallback, event, time);
457 debounce_is_up_delaying_spurious_handle_event(fallback, event, time);
460 debounce_is_up_detecting_spurious_handle_event(fallback, event, time);
463 debounce_is_down_detecting_spurious_handle_event(fallback, event, time);
466 debounce_is_up_waiting_handle_event(fallback, event, time);
469 debounce_is_down_delaying_handle_event(fallback, event, time);
472 debounce_disabled_handle_event(fallback, event, time);
479 debounce_event_to_str(event),
487 unsigned int changed[16] = {0}; /* event codes of changed buttons */
517 * - a OTHERBUTTON event always flushes the state to IS_DOWN or
540 /* if we have more than one event, we flush the state
541 * machine immediately after the event itself */