diff options
author | tcmal <me@aria.rip> | 2024-08-25 17:44:22 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-25 17:44:22 +0100 |
commit | 7be602f38f9ba5067de8fa8f3a004ce4e5200ade (patch) | |
tree | bccf3cf8acd0043e9292824660b776f69366256e /stockton-input/src/manager.rs | |
parent | 8004132c918a52af3b2e7b32b4fc72c65fde9e3c (diff) |
feat(input): add type of inputs to inputmanager trait
Diffstat (limited to 'stockton-input/src/manager.rs')
-rw-r--r-- | stockton-input/src/manager.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stockton-input/src/manager.rs b/stockton-input/src/manager.rs index 4d2d001..f0786b0 100644 --- a/stockton-input/src/manager.rs +++ b/stockton-input/src/manager.rs @@ -46,5 +46,8 @@ impl Action { } pub trait InputManager { + type Inputs; + fn handle_frame<'a, X: IntoIterator<Item = &'a Action>>(&mut self, actions: X); + fn get_inputs(&self) -> &Self::Inputs; } |