Enable InputState event handler in engine
This commit is contained in:
parent
1a48e58a1c
commit
54967067bd
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ impl EngineTrait for Engine {
|
|||
}
|
||||
|
||||
fn handle_event(&mut self, platform_context: PlatformContext) {
|
||||
// self.input_state.borrow_mut().handle_event(&platform_context.current_event);
|
||||
self.resources.get_mut::<InputState>().unwrap().handle_event(&platform_context.current_event);
|
||||
self.resources.insert(platform_context);
|
||||
for system in self.system_manager.systems.values_mut() {
|
||||
system.handle_event(&mut self.resources, &mut self.scene_manager.current_mut());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue