Crate bevy_brp_extras

Crate bevy_brp_extras 

Source
Expand description

Extra BRP methods for Bevy applications

This crate provides additional Bevy Remote Protocol (BRP) methods that can be added to your Bevy application for enhanced remote control capabilities.

§Usage

Add the plugin to your Bevy app:

use bevy::prelude::*;
use bevy_brp_extras::BrpExtrasPlugin;

App::new()
    .add_plugins(DefaultPlugins)
    .add_plugins(BrpExtrasPlugin::default())
    .run();

This will add the following BRP methods to your app:

  • brp_extras/screenshot: Capture a screenshot
  • brp_extras/shutdown: Gracefully shutdown the app
  • brp_extras/send_keys: Send keyboard input
  • brp_extras/set_window_title: Change the window title

Structs§

BrpExtrasPlugin
Plugin type for adding extra BRP methods
KeyCodeInfo
Information about a key code
SendKeysRequest
Request structure for send_keys
SendKeysResponse
Response structure for send_keys
TimedKeyRelease
Component that tracks keys that need to be released after a duration

Enums§

KeyCodeWrapper
Wrapper enum for Bevy’s KeyCode with strum derives for string conversion

Constants§

BrpExtrasPlugin
Plugin that adds extra BRP methods to a Bevy app
DEFAULT_REMOTE_PORT
Default port for remote control connections