10 unstable releases (3 breaking)

0.4.0 Jul 4, 2024
0.4.0-rc.4 Jun 29, 2024
0.3.0 Mar 11, 2024
0.2.1 Nov 13, 2022
0.1.2 Jul 31, 2022

#1892 in Game dev

Download history 29/week @ 2024-07-08 8/week @ 2024-07-15 68/week @ 2024-07-29 38/week @ 2024-08-05 30/week @ 2024-08-12 44/week @ 2024-08-19 30/week @ 2024-08-26 18/week @ 2024-09-02 16/week @ 2024-09-09 19/week @ 2024-09-16 40/week @ 2024-09-23 45/week @ 2024-09-30 54/week @ 2024-10-07 52/week @ 2024-10-14 57/week @ 2024-10-21

214 downloads per month

MIT/Apache

330KB
284 lines

Bevy Stream Deck

MIT/Apache 2.0 Doc Crate Bevy Tracking CI

Elgato Stream Deck plugin for Bevy.

capture of a Stream Deck

Add the plugin:

app.add_plugin(StreamDeckPlugin);

Receive events from button press (see inputs example):

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):

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)

fn set_color(streamdeck: Res<StreamDeck>) {
    streamdeck.set_key_color(1, Color::BLUE);
}

Display an image on a button (see image example)

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);
    }
}

Linux Setup

see https://github.com/ryankurte/rust-streamdeck#getting-started

Bevy Compatibility

Bevy bevy_streamdeck
0.14 0.4
0.13 0.3
0.9 0.2
0.8 0.1

Dependencies

~43–84MB
~1.5M SLoC