Fix(Mouse): Remove unimplemented! Macro for Mouse

Remove `unimplemented!` macro for mouse and unsupported events,
essentialy mimicking the NoOp.

Should not crash anymore when handling mouse events.

Alternatives:
Keep the `unimplemented!` macro for `termion::event::Event::Unsupported` ?

closes #243
This commit is contained in:
a-kenji 2021-03-31 12:09:14 +02:00
parent d818661c72
commit 267f4b48de

View file

@ -81,7 +81,8 @@ impl InputHandler {
}
termion::event::Event::Mouse(_)
| termion::event::Event::Unsupported(_) => {
unimplemented!("Mouse and unsupported events aren't supported!");
// Mouse and unsupported events aren't implemented yet,
// use a NoOp untill then.
}
},
Err(err) => panic!("Encountered read error: {:?}", err),