aboutsummaryrefslogtreecommitdiff
path: root/stockton-input/src
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:22 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:22 +0100
commit7be602f38f9ba5067de8fa8f3a004ce4e5200ade (patch)
treebccf3cf8acd0043e9292824660b776f69366256e /stockton-input/src
parent8004132c918a52af3b2e7b32b4fc72c65fde9e3c (diff)
feat(input): add type of inputs to inputmanager trait
Diffstat (limited to 'stockton-input/src')
-rw-r--r--stockton-input/src/manager.rs3
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;
}