You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
678 B
29 lines
678 B
VERSION 1
|
|
TYPE KeyboardReports
|
|
NAME Keys Active When pressed
|
|
|
|
# Comment lines end up as comments in the generated source
|
|
KEYSWITCH switchA 2 1
|
|
KEYSWITCH switchS 2 2
|
|
|
|
PRESS switchA
|
|
RUN 1 cycles
|
|
EXPECT keyboard-report Key_A # Key A should be pressed
|
|
|
|
RELEASE switchA
|
|
RUN 1 cycle
|
|
EXPECT keyboard-report empty # No keys should be pressed
|
|
|
|
|
|
PRESS switchA
|
|
PRESS switchS
|
|
RUN 1 ms
|
|
EXPECT keyboard-report Key_A # TODO modflag rollover prevention inapropriately sends two reports here. It's not harmful, but is annoying
|
|
EXPECT keyboard-report Key_A, Key_S # A and S should be pressed
|
|
|
|
RELEASE switchA
|
|
RELEASE switchS
|
|
RUN 1 cycle
|
|
EXPECT keyboard-report empty # No keys should be pressed
|
|
|