Lines Matching refs:code
306 int type, code;
313 code = EVENT_CODE_UNDEFINED;
332 code = libevdev_event_code_from_name(type, s);
333 if (code == -1)
344 *code_out = code;
352 * type OR a named event code OR a tuple in the form of EV_KEY:0x123, i.e. a
353 * named event type followed by a hex event code.
360 * The results are returned as input events with type and code set, all
361 * other fields undefined. Where only the event type is specified, the code
395 int type, code;
398 if (!parse_evcode_string(s, &type, &code))
404 if (sscanf(s, "%12[A-Z_]:%x%n", stype, &code, &consumed) != 2 ||
407 code < 0 || code > libevdev_event_type_get_max(type))
412 evs[idx].code = code;