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:
parent
d818661c72
commit
267f4b48de
1 changed files with 2 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue