diff options
| author | Brooks J Rady <b.j.rady@gmail.com> | 2021-01-07 09:39:16 +0000 |
|---|---|---|
| committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-01-07 09:39:16 +0000 |
| commit | 01eaedcd3746e9de30fe867340667c65d8eb2733 (patch) | |
| tree | d4a2ce89265d1a38ac8a4041821058336d43d1a6 /src/errors.rs | |
| parent | Merge branch 'main' into wasm-launchable (diff) | |
| download | sl0ppij-01eaedcd3746e9de30fe867340667c65d8eb2733.tar.gz sl0ppij-01eaedcd3746e9de30fe867340667c65d8eb2733.tar.xz sl0ppij-01eaedcd3746e9de30fe867340667c65d8eb2733.zip | |
Parse bytes into keys with Termion
Diffstat (limited to 'src/errors.rs')
| -rw-r--r-- | src/errors.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs index 04c25ee0..e53bbc30 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -243,6 +243,7 @@ use crate::wasm_vm::PluginInstruction; pub enum PluginContext { Load, Draw, + Input, Unload, Quit, } @@ -252,6 +253,7 @@ impl From<&PluginInstruction> for PluginContext { match *plugin_instruction { PluginInstruction::Load(..) => PluginContext::Load, PluginInstruction::Draw(..) => PluginContext::Draw, + PluginInstruction::Input(..) => PluginContext::Input, PluginInstruction::Unload(_) => PluginContext::Unload, PluginInstruction::Quit => PluginContext::Quit, } |
