We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e5d7094 + 0ebf1df commit 87526c5Copy full SHA for 87526c5
src/main.rs
@@ -428,6 +428,7 @@ fn tap(
428
mut commands: Commands,
429
audio_handles: Res<AudioHandles>,
430
keyboard_input: Res<ButtonInput<KeyCode>>,
431
+ game_pad: Query<&Gamepad>,
432
buttons: Res<ButtonInput<MouseButton>>,
433
touches: Res<Touches>,
434
last_tick: Res<LastTick>,
@@ -439,6 +440,9 @@ fn tap(
439
440
if keyboard_input.get_just_pressed().count() > 0
441
|| buttons.get_just_pressed().count() > 0
442
|| touches.any_just_pressed()
443
+ || game_pad
444
+ .iter()
445
+ .any(|game_pad| game_pad.get_just_pressed().count() > 0)
446
{
447
if !mute.tap_mute {
448
commands.spawn((
0 commit comments