Skip to content

Commit 20411a5

Browse files
committed
docs(evdev): add _snippets dir
1 parent e6f2367 commit 20411a5

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
| Key | Type | Description |
2+
| -------------- | ----------- | ----------------------------------- |
3+
| `path` | `string` | Device path |
4+
| `name` | `string?` | Human-readable name |
5+
| `bustype` | `integer` | Bus type identifier |
6+
| `vendor` | `integer` | Vendor ID |
7+
| `product` | `integer` | Product ID |
8+
| `version` | `integer` | Device version |
9+
| `phys` | `string?` | Physical location |
10+
| `uniq` | `string?` | Unique identifier |
11+
| `id_aliases` | `string[]?` | Symlinks under `/dev/input/by-id` |
12+
| `path_aliases` | `string[]?` | Symlinks under `/dev/input/by-path` |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
| Key | Type | Description |
2+
| -------- | ---------- | --------------------------------------------------------------- |
3+
| `type` | `integer` | Event type, e.g. `EV_KEY` (`1`), `EV_REL` (`2`), `EV_ABS` (`3`) |
4+
| `code` | `integer` | Key/button/axis code, e.g. `KEY_A` (`30`), `REL_X` (`0`) |
5+
| `value` | `integer` | `0` = release, `1` = press, `2` = repeat (for keys) |
6+
| `sec` | `integer?` | Timestamp seconds |
7+
| `usec` | `integer?` | Timestamp microseconds |
8+
| `device` | `table` | The Device object that produced this event |

0 commit comments

Comments
 (0)