View Source InputEvent.Info (input_event v1.4.2)

Information about a input event file

Summary

Functions

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

Types

@type report_info() ::
  {InputEvent.type(), [InputEvent.code() | {InputEvent.code(), map()}]}
@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()
}

Functions

Link to this function

decode_report_info(raw_type, raw_report_info)

View Source
@spec decode_report_info(InputEvent.type_number(), binary()) :: report_info()

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