diff options
Diffstat (limited to 'src/input/model.rs')
| -rw-r--r-- | src/input/model.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/input/model.rs b/src/input/model.rs index 31c521e8..9339b965 100644 --- a/src/input/model.rs +++ b/src/input/model.rs @@ -55,3 +55,25 @@ impl KeyboardProtocol { } } } + +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum MouseProtocolMode { + None, + Press, + PressRelease, + ButtonMotion, + AnyMotion, +} + +impl MouseProtocolMode { + pub fn reporting_enabled(self) -> bool { + self != Self::None + } +} + +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum MouseProtocolEncoding { + Default, + Utf8, + Sgr, +} |
