This crate provides reading user input sequences, and sending event
APACHE-2.0 License
Bot releases are hidden (Show)
Thanks to the achievements of shanecelis, the functionality of this library has greatly evolved.
Specifically, it is now possible to not only send an event when a key matches, but also to run a system.
Please see below for details.
#6
Published by not-elm 8 months ago
key!
and keyseq!
macro from keyseq
crate.add_input_sequence_run_if()
variant.Make timeout setting more ergonomic.
Use a trie for sequence detection.
Changes the algorithmic complexity each tick from O(number of key_sequences)
to O(length of longest key sequence)
.
Make new()
generic: new<T:Into<Act>>(inputs: [T])
The multiple_inputs
test is disabled.
This test includes keyboard and controller inputs. It's not clear how to
manage these with controller sequences being independent from one another.