Skip to content

Commit

Permalink
feat: ✨ Add automatic button mapping system (internal) (#1817)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmerp authored Sep 5, 2023
1 parent 79eff14 commit 788fffb
Show file tree
Hide file tree
Showing 22 changed files with 2,089 additions and 1,580 deletions.
11 changes: 11 additions & 0 deletions alvr/client_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,17 @@ pub fn send_playspace(area: Option<Vec2>) {
}
}

pub fn send_active_interaction_profile(device_id: u64, profile_id: u64) {
if let Some(sender) = &mut *CONTROL_SENDER.lock() {
sender
.send(&ClientControlPacket::ActiveInteractionProfile {
device_id,
profile_id,
})
.ok();
}
}

pub fn send_buttons(entries: Vec<ButtonEntry>) {
if let Some(sender) = &mut *CONTROL_SENDER.lock() {
sender.send(&ClientControlPacket::Buttons(entries)).ok();
Expand Down
Loading

0 comments on commit 788fffb

Please sign in to comment.