-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add UI button actions to send arbitrary OSC values. (#140)
* osc: start adding osc buttons a button action that sends an osc parameter. struggling with borrows in openxr.rs and openvr.rs when getting the osc sender. * osc: fix osc sender buttons by passing a ref to the device list to send_params instead of the entire app state. * osc: fix warnings * osc: conditionally use OscSender crate in state.rs * osc: fix button.rs compile errors without osc/wayvr features * osc: add other types: int, bool, string. play thump noise when sent. * osc: fix build without osc feature i just want to use OscType directly, but since it doesn't derive serde::Deserialize, i can't just have one OscType action or list of actions... * merge typed actions to one action, support multiple values. i added a new struct OscValue that has Deserialize, and now the action just converts that to the corresponding OscType when sending the parameters. perhaps not the most elegant solution, but it's the best i can think of without modifying the rosc crate. * run `cargo fmt`
- Loading branch information
Showing
5 changed files
with
97 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters