aboutsummaryrefslogtreecommitdiffstats
path: root/src/errors.rs
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-01-07 09:39:16 +0000
committerBrooks J Rady <b.j.rady@gmail.com>2021-01-07 09:39:16 +0000
commit01eaedcd3746e9de30fe867340667c65d8eb2733 (patch)
treed4a2ce89265d1a38ac8a4041821058336d43d1a6 /src/errors.rs
parentMerge branch 'main' into wasm-launchable (diff)
downloadsl0ppij-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.rs2
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,
}