View Source InputEvent.Info (input_event v1.2.0)

Information about a input event file

Link to this section Summary

Functions

Helper function for decoding raw report information from the port driver.

Link to this section Types

@type t() :: %InputEvent.Info{
  bus: non_neg_integer(),
  input_event_version: String.t(),
  name: String.t(),
  product: non_neg_integer(),
  report_info: [{atom(), [any()]}],
  vendor: non_neg_integer(),
  version: non_neg_integer()
}

Link to this section Functions

Link to this function

decode_report_info(raw_type, raw_report_info)

View Source
@spec decode_report_info(InputEvent.type_number(), binary()) ::
  {InputEvent.type(), [InputEvent.code() | {InputEvent.code(), map()}]}

Helper function for decoding raw report information from the port driver.