customization via wayvr_ipc
This commit is contained in:
@@ -48,6 +48,22 @@ pub struct WlxHapticsParams {
|
||||
pub frequency: f32,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub enum WlxCustomCommand {
|
||||
SetText(String),
|
||||
SetColor(String),
|
||||
SetSprite(String),
|
||||
SetVisible(bool),
|
||||
SetStickyState(bool),
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct WlxCustomParams {
|
||||
pub overlay: String,
|
||||
pub element: String,
|
||||
pub command: WlxCustomCommand,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub enum PacketClient {
|
||||
Handshake(Handshake),
|
||||
@@ -68,4 +84,5 @@ pub enum PacketClient {
|
||||
WvrProcessTerminate(packet_server::WvrProcessHandle),
|
||||
WlxHaptics(WlxHapticsParams),
|
||||
WlxInputState(Serial),
|
||||
WlxCustom(WlxCustomParams),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user