A tool to inspect input devices and reports via the FIDL protocol fuchsia.input.report.InputDevice.
listLists connected devices.
Options:
--output <table|csv|json>: Output format (default: table).get-descriptorReads device descriptors.
Options:
--output <text|json>: Output format (default: text).--instance <instance>: Instance name to filter by (e.g. 000).--vendor <0xhex>: Vendor ID to filter by in hexadecimal format (e.g. 0x1234).--product <0xhex>: Product ID to filter by in hexadecimal format (e.g. 0x5678).readReads input reports via InputReportsReaderV2.
Options:
--output <text|json>: Output format (default: text).--instance <instance>: Instance name to filter by (e.g. 000).--vendor <0xhex>: Vendor ID to filter by in hexadecimal format (e.g. 0x1234).--product <0xhex>: Product ID to filter by in hexadecimal format (e.g. 0x5678).--num-reads <num>: Total number of reports to read from all devices. If omitted, reads continuously.List all connected devices in table format:
ffx target ssh -- print-input-report list
List devices in CSV format:
ffx target ssh -- print-input-report list --output csv
List devices in JSON format:
ffx target ssh -- print-input-report list --output json
Read descriptors for all connected devices:
ffx target ssh -- print-input-report get-descriptor
Read descriptor for a specific device instance:
ffx target ssh -- print-input-report get-descriptor --instance 000
Read descriptor in JSON format filtered by vendor and product ID:
ffx target ssh -- print-input-report get-descriptor --vendor 0x18d1 --product 0x5036 --output json
Continuously stream input reports from all devices:
ffx target ssh -- print-input-report read
Read 5 reports from a specific device instance:
ffx target ssh -- print-input-report read --instance 000 --num-reads 5
Read reports in JSON format filtered by vendor and product ID:
ffx target ssh -- print-input-report read --vendor 0x18d1 --product 0x5036 --output json
Run unit tests for print-input-report:
fx test print-input-report-tests