Support Bevy 0.17 (#11)
* update: modify for 0.17 * update: enhance webview functionality and improve plugin implementation * update: refactor webview system and improve binding group usage * update: refactor command triggering for webview events and enhance Receive struct * update: refactor command triggering for webview dev tools * update: refactor render process handler and improve webview handling * update: refactor webview browser handling and improve IME caret management * clippy * fmt * update: improve README formatting and clarify version compatibility * update: support Bevy 0.17 and enhance permissions in settings * update: enhance CI configuration by adding Wayland and XKB dependencies * delete: settings.json * update: refactor shader imports and improve binding group definitions * update: refactor devtool command triggers for improved clarity * update: modify LibraryLoader initialization for improved path handling on macOS * fmt --------- Co-authored-by: not-elm <elmgameinfo@gmail.com>
This commit is contained in:
@@ -14,8 +14,8 @@ impl Plugin for KeyboardPlugin {
|
||||
app.init_resource::<IsImeCommiting>().add_systems(
|
||||
Update,
|
||||
(
|
||||
ime_event.run_if(on_event::<Ime>),
|
||||
send_key_event.run_if(on_event::<KeyboardInput>),
|
||||
ime_event.run_if(on_message::<Ime>),
|
||||
send_key_event.run_if(on_message::<KeyboardInput>),
|
||||
)
|
||||
.chain(),
|
||||
);
|
||||
@@ -27,7 +27,7 @@ impl Plugin for KeyboardPlugin {
|
||||
struct IsImeCommiting(bool);
|
||||
|
||||
fn send_key_event(
|
||||
mut er: EventReader<KeyboardInput>,
|
||||
mut er: MessageReader<KeyboardInput>,
|
||||
mut is_ime_commiting: ResMut<IsImeCommiting>,
|
||||
input: Res<ButtonInput<KeyCode>>,
|
||||
browsers: NonSend<Browsers>,
|
||||
@@ -51,7 +51,7 @@ fn send_key_event(
|
||||
}
|
||||
|
||||
fn ime_event(
|
||||
mut er: EventReader<Ime>,
|
||||
mut er: MessageReader<Ime>,
|
||||
mut is_ime_commiting: ResMut<IsImeCommiting>,
|
||||
browsers: NonSend<Browsers>,
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user