wayvrctl switch-set

This commit is contained in:
galister
2026-01-14 15:01:01 +09:00
parent 9d43068271
commit a97ee2cee2
8 changed files with 44 additions and 15 deletions

View File

@@ -410,11 +410,16 @@ impl WayVRClient {
Ok(())
}
pub async fn fn_wlx_overlay_show_hide(client: WayVRClientMutex) -> anyhow::Result<()> {
pub async fn fn_wlx_show_hide(client: WayVRClientMutex) -> anyhow::Result<()> {
send_only!(client, &PacketClient::WlxShowHide);
Ok(())
}
pub async fn fn_wlx_switch_set(client: WayVRClientMutex, set: Option<usize>) -> anyhow::Result<()> {
send_only!(client, &PacketClient::WlxSwitchSet(set));
Ok(())
}
pub async fn fn_wlx_modify_panel(
client: WayVRClientMutex,
params: packet_client::WlxModifyPanelParams,

View File

@@ -68,4 +68,5 @@ pub enum PacketClient {
WlxModifyPanel(WlxModifyPanelParams),
WlxDeviceHaptics(usize, WlxHapticsParams),
WlxShowHide,
WlxSwitchSet(Option<usize>),
}