Skip to content

Commit

Permalink
feat: ✨ Add automatic button mapping system (internal)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmerp committed Sep 4, 2023
1 parent 4e3aa3b commit a71cb9c
Show file tree
Hide file tree
Showing 22 changed files with 2,041 additions and 1,579 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 a71cb9c

Please sign in to comment.