lighthouse-protocol 6.2.1

Protocol types for Project Lighthouse
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Serialize, Deserialize};

/// A keyboard/controller input event, as generated by the new frontend (LUNA)
/// in "Legacy Mode" (or the old website).
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone, Copy)]
pub struct LegacyInputEvent {
    #[serde(rename = "src")]
    pub source: i32,
    pub key: Option<i32>,
    #[serde(rename = "btn")]
    pub button: Option<i32>,
    #[serde(rename = "dwn")]
    pub is_down: bool,
}