From 077a058cc428db8b1a9ec13f2a9c49ba500f7ac0 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Mon, 26 Sep 2016 22:22:28 -0700 Subject: wip doesn't work on ubuntu 16.04 for some reason --- src/event.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/event.rs') diff --git a/src/event.rs b/src/event.rs index 1b30ed64..3dbe1e4b 100644 --- a/src/event.rs +++ b/src/event.rs @@ -60,7 +60,14 @@ impl Processor { let processor = &mut self.input_processor; let notifier = &mut self.notifier; - processor.process(state, key, mods, notifier, *terminal.mode()); + processor.process_key(state, key, mods, notifier, *terminal.mode()); + }, + glutin::Event::MouseInput(state, button) => { + let terminal = self.terminal.lock(); + let processor = &mut self.input_processor; + let notifier = &mut self.notifier; + + processor.mouse_input(state, button, notifier, *terminal.mode()); }, _ => (), } -- cgit v1.2.3-54-g00ecf