From 8f19a74734fce37a09a5521cd0c0b2981dbc3293 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Thu, 10 Dec 2020 15:30:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=86=85=E5=AE=B9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- Software/Applications/Input/Linux_下_Input_工具.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Software/Applications/Input/Linux_下_Input_工具.md b/Software/Applications/Input/Linux_下_Input_工具.md index a3e1db0..3c9eeaf 100644 --- a/Software/Applications/Input/Linux_下_Input_工具.md +++ b/Software/Applications/Input/Linux_下_Input_工具.md @@ -1,9 +1,20 @@ # Linux 下 Input 工具 ```bash -getevent /dev/input/event +# 捕获事件 +getevent +# 发送事件 +sendevent ``` +其中 device 是如 /dev/input/event0 这样的设备文件节点。 + +getevent 其他参数如下: + +| Argument | Description | +|----------|---------------| +| -t | 打印事件的时间戳 | + 当由 input 事件到来时将以: ```bash