Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a225a16 authored by Harry Cutts's avatar Harry Cutts
Browse files

uinput: fix a couple of errors in the README

* The link to example files in the CTS tests was actually pointing to
  example files for the hid command, not uinput. I can't find any for
  uinput.
* The example register command was missing EV_ABS from its UI_SET_EVBIT
  call.

Test: check rendering in Gitiles
Bug: 245989146
Flag: DOCS_ONLY
Change-Id: I6958a1ab17a380676ea7f78fd86ff3373ef194f2
parent 216b37b7
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -41,10 +41,7 @@ the file, one after the other without separators:
}
```

Many examples of command files can be found [in the CTS tests][cts-example-jsons].

[lenient mode]: https://developer.android.com/reference/android/util/JsonReader#setLenient(boolean)
[cts-example-jsons]: https://cs.android.com/android/platform/superproject/main/+/main:cts/tests/tests/hardware/res/raw/

### Command reference

@@ -123,7 +120,7 @@ Example:
  "pid": 0x2c42,
  "bus": "usb",
  "configuration":[
        {"type":"UI_SET_EVBIT", "data":["EV_KEY", "EV_FF"]},
        {"type":"UI_SET_EVBIT", "data":["EV_KEY", "EV_ABS", "EV_FF"]},
        {"type":"UI_SET_KEYBIT", "data":["KEY_0", "KEY_1", "KEY_2", "KEY_3"]},
        {"type":"UI_SET_ABSBIT", "data":["ABS_Y", "ABS_WHEEL"]},
        {"type":"UI_SET_FFBIT", "data":["FF_RUMBLE"]}