protected override bool OnJoystickRelease(JoystickReleaseEvent e) { if (e.Button == JoystickButton.FirstHatUp + hatIndex) { upBox.FadeOut(100); } else if (e.Button == JoystickButton.FirstHatDown + hatIndex) { downBox.FadeOut(100); } else if (e.Button == JoystickButton.FirstHatLeft + hatIndex) { leftBox.FadeOut(100); } else if (e.Button == JoystickButton.FirstHatRight + hatIndex) { rightBox.FadeOut(100); } else { return(base.OnJoystickRelease(e)); } return(true); }
protected override void OnJoystickRelease(JoystickReleaseEvent e) { if (config.GameInputs.TryGetValue(e.Button, out var gi)) { mgr.RegisterHit(InputType.Released, gi); } }
protected override bool OnJoystickRelease(JoystickReleaseEvent e) { if (e.Button != button) { return(base.OnJoystickRelease(e)); } background.FadeOut(100); return(true); }
protected override void OnJoystickRelease(JoystickReleaseEvent e) { if (e.Button != button) { base.OnJoystickRelease(e); return; } background.FadeOut(100); }
protected override bool OnJoystickRelease(JoystickReleaseEvent e) { if (!HasFocus) { return(base.OnJoystickRelease(e)); } finalise(); return(true); }
protected override void OnJoystickRelease(JoystickReleaseEvent e) { if (e.Button == positiveAxisButton || e.Button == negativeAxisButton) { background.FadeColour(new Color4(0, 0, 0, 0), 100, Easing.OutQuint); } else { base.OnJoystickRelease(e); } }
protected override void OnJoystickRelease(JoystickReleaseEvent e) { if (e.Button == positiveAxisButton || e.Button == negativeAxisButton) { background.BorderColour = Color4.Transparent; } else { base.OnJoystickRelease(e); } }
protected override void OnJoystickRelease(JoystickReleaseEvent e) { ReleaseReceived = true; Release?.Invoke(); }
protected override bool OnJoystickRelease(JoystickReleaseEvent e) { ++JoystickReleaseCount; return(base.OnJoystickRelease(e)); }
protected override void OnJoystickRelease(JoystickReleaseEvent e) { ++JoystickReleaseCount; base.OnJoystickRelease(e); }