2023-03-15 03:38:30 +08:00
|
|
|
/*
|
|
|
|
* Copyright 2023 Google LLC
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2023-08-04 03:00:01 +08:00
|
|
|
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
2023-03-15 03:38:30 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
fake_input_device: fake-device {
|
|
|
|
compatible = "vnd,input-device";
|
|
|
|
};
|
|
|
|
|
|
|
|
longpress: longpress {
|
|
|
|
input = <&fake_input_device>;
|
|
|
|
compatible = "zephyr,input-longpress";
|
|
|
|
input-codes = <INPUT_KEY_0>, <INPUT_KEY_1>;
|
|
|
|
short-codes = <INPUT_KEY_A>, <INPUT_KEY_B>;
|
|
|
|
long-codes = <INPUT_KEY_X>, <INPUT_KEY_Y>;
|
|
|
|
long-delay-ms = <100>;
|
|
|
|
};
|
|
|
|
};
|