From 7be602f38f9ba5067de8fa8f3a004ce4e5200ade Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:22 +0100 Subject: feat(input): add type of inputs to inputmanager trait --- stockton-input/src/manager.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'stockton-input') 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>(&mut self, actions: X); + fn get_inputs(&self) -> &Self::Inputs; } -- cgit v1.2.3