wayvrctl + panel-modify ipc
This commit is contained in:
@@ -486,6 +486,14 @@ impl WayVRClient {
|
||||
send_only!(client, &PacketClient::WlxHaptics(params));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn fn_wlx_modify_panel(
|
||||
client: WayVRClientMutex,
|
||||
params: packet_client::WlxModifyPanelParams,
|
||||
) -> anyhow::Result<()> {
|
||||
send_only!(client, &PacketClient::WlxModifyPanel(params));
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for WayVRClient {
|
||||
|
||||
@@ -49,7 +49,7 @@ pub struct WlxHapticsParams {
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub enum WlxCustomCommand {
|
||||
pub enum WlxModifyPanelCommand {
|
||||
SetText(String),
|
||||
SetColor(String),
|
||||
SetSprite(String),
|
||||
@@ -58,10 +58,10 @@ pub enum WlxCustomCommand {
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct WlxCustomParams {
|
||||
pub struct WlxModifyPanelParams {
|
||||
pub overlay: String,
|
||||
pub element: String,
|
||||
pub command: WlxCustomCommand,
|
||||
pub command: WlxModifyPanelCommand,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
@@ -84,5 +84,5 @@ pub enum PacketClient {
|
||||
WvrProcessTerminate(packet_server::WvrProcessHandle),
|
||||
WlxHaptics(WlxHapticsParams),
|
||||
WlxInputState(Serial),
|
||||
WlxCustom(WlxCustomParams),
|
||||
WlxModifyPanel(WlxModifyPanelParams),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user