Пример #1
0
 private void Controller_PointerPressed(object sender, PointerRoutedEventArgs e)
 {
     _controlRadius     = OuterDiameter / 2;
     _controllerPressed = true;
     OnJoystickPressed?.Invoke(this, new JoystickEventArgs(XValue, YValue));
 }
Пример #2
0
 internal void InvokeJoystickPressed(Joystick joystick, int button)
 {
     OnJoystickPressed?.Invoke(joystick, button);
     JoystickPressed(joystick, button);
 }