Skip to content

Commit 6cdc16e

Browse files
committed
docs(evdev): update ecodes.md
1 parent 43a87fd commit 6cdc16e

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

docs/src/evdev/api/ecodes.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Event type constants used in the `type` field of Linux input events.
66

7-
| Field | Description |
7+
| Name | Description |
88
| -------------- | ----------- |
99
| `EV_ABS` | `3` |
1010
| `EV_CNT` | `32` |
@@ -21,12 +21,25 @@ Event type constants used in the `type` field of Linux input events.
2121
| `EV_SW` | `5` |
2222
| `EV_SYN` | `0` |
2323

24+
## SYN
25+
26+
Synchronization constants used to separate or mark input event packets.
27+
28+
| Name | Description |
29+
| --------------- | ----------- |
30+
| `SYN_CNT` | `16` |
31+
| `SYN_CONFIG` | `1` |
32+
| `SYN_DROPPED` | `3` |
33+
| `SYN_MAX` | `15` |
34+
| `SYN_MT_REPORT` | `2` |
35+
| `SYN_REPORT` | `0` |
36+
2437
## REL
2538

2639
Relative axis constants used with `EV_REL` events, such as mouse movement and
2740
wheel input.
2841

29-
| Field | Description |
42+
| Name | Description |
3043
| ------------------- | ----------- |
3144
| `REL_CNT` | `16` |
3245
| `REL_DIAL` | `7` |
@@ -44,25 +57,12 @@ wheel input.
4457
| `REL_Y` | `1` |
4558
| `REL_Z` | `2` |
4659

47-
## SYN
48-
49-
Synchronization constants used to separate or mark input event packets.
50-
51-
| Field | Description |
52-
| --------------- | ----------- |
53-
| `SYN_CNT` | `16` |
54-
| `SYN_CONFIG` | `1` |
55-
| `SYN_DROPPED` | `3` |
56-
| `SYN_MAX` | `15` |
57-
| `SYN_MT_REPORT` | `2` |
58-
| `SYN_REPORT` | `0` |
59-
6060
## BTN
6161

6262
Button constants used with `EV_KEY` events for mouse, joystick, gamepad, tablet,
6363
and other button-like inputs.
6464

65-
| Field | Description |
65+
| Name | Description |
6666
| --------------------- | ----------- |
6767
| `BTN_0` | `256` |
6868
| `BTN_1` | `257` |
@@ -192,7 +192,7 @@ and other button-like inputs.
192192

193193
Keyboard and consumer key constants used with `EV_KEY` events.
194194

195-
| Field | Description |
195+
| Name | Description |
196196
| ------------------------------ | ----------- |
197197
| `KEY_0` | `11` |
198198
| `KEY_1` | `2` |

0 commit comments

Comments
 (0)