1/*
2 * Copyright 2023 Google LLC
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <zephyr/dt-bindings/input/input-event-codes.h>
8
9/ {
10	fake_input_device: fake-device {
11		compatible = "vnd,input-device";
12	};
13
14	longpress: longpress {
15		input = <&fake_input_device>;
16		compatible = "zephyr,input-longpress";
17		input-codes = <INPUT_KEY_0>, <INPUT_KEY_1>;
18		short-codes = <INPUT_KEY_A>, <INPUT_KEY_B>;
19		long-codes = <INPUT_KEY_X>, <INPUT_KEY_Y>;
20		long-delay-ms = <100>;
21	};
22
23	longpress_no_short: longpress-no-short {
24		input = <&fake_input_device>;
25		compatible = "zephyr,input-longpress";
26		input-codes = <INPUT_KEY_0>, <INPUT_KEY_1>;
27		long-codes = <INPUT_KEY_X>, <INPUT_KEY_Y>;
28		long-delay-ms = <100>;
29	};
30};
31