Elgato Stream Deck plugin for Bevy.
Add the plugin:
rust
app.add_plugin(StreamDeckPlugin);
Receive events from button press (see inputs example):
rust
fn print_streamdeck_events(mut streamdeck_input_events: EventReader<StreamDeckInput>) {
for event in streamdeck_input_events.iter() {
info!("{:?}", event);
}
}
Receive events from button press (see inputs example):
rust
fn print_streamdeck_events(mut streamdeck_input_events: EventReader<StreamDeckInput>) {
for event in streamdeck_input_events.iter() {
info!("{:?}", event);
}
}
Set a button color (see colors example)
```rust
fn setcolor(streamdeck: Res
```
Display an image on a button (see image example)
rust
fn set_image(streamdeck: Res<StreamDeck>, logo: Res<Logo>, images: Res<Assets<Image>>) {
let handle: Handle<Image> = ...;
if let Some(image) = images.get(&handle) {
streamdeck.set_key_image(1, &image);
}
}
see https://github.com/ryankurte/rust-streamdeck#getting-started
|Bevy|bevy_streamdeck| |---|---| |0.9|0.2| |0.8|0.1|