forked from kofal.net/zmk
Testing: split input test (#2762)
test(pointing): Add mock input device. New mock input device to generate input events for tests. test(split): Add peripheral input test. Test event propagation from peripheral input devices. fix(split): Proper scoping for local within switch. Minor compile fix. chore: Fix up test snapshots after logging changes. Adjust the test snapshots after logging changes to the central. fix(kscan): Don't fire last mock event twice. Fix a bug where the kscan mock would raise the last mock event twice before halting processing.
This commit is contained in:
21
app/module/dts/bindings/input/zmk,input-mock.yaml
Normal file
21
app/module/dts/bindings/input/zmk,input-mock.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
# Copyright (c) 2024 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
description: |
|
||||
Allows defining a mock input driver that simulates periodic input events.
|
||||
|
||||
compatible: "zmk,input-mock"
|
||||
|
||||
properties:
|
||||
event-startup-delay:
|
||||
type: int
|
||||
default: 0
|
||||
description: Milliseconds to delay before starting generating the events
|
||||
event-period:
|
||||
type: int
|
||||
description: Milliseconds between each generated event
|
||||
events:
|
||||
type: array
|
||||
description: List of tuples of (type, code, value, sync)
|
||||
exit-after:
|
||||
type: boolean
|
||||
Reference in New Issue
Block a user