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::{Deserialize, Serialize};

use super::EventSource;

/// An unknown event.
#[derive(Debug, Serialize, Deserialize, PartialEq, Clone)]
#[serde(rename_all = "camelCase")]
pub struct UnknownEvent {
    /// The event type.
    #[serde(rename = "type")]
    pub event_type: String,
    /// The client identifier. Also unique per gamepad.
    pub source: EventSource,
}