private void ResetSettings_Click(object sender, RoutedEventArgs e) { IntifaceGameHapticsRouterProperties.Default.Reset(); IntifaceGameHapticsRouterProperties.Default.Save(); MultiplierChanged?.Invoke(this, IntifaceGameHapticsRouterProperties.Default.VibrationMultiplier); PacketGapChanged?.Invoke(this, IntifaceGameHapticsRouterProperties.Default.PacketTimingGapInMS); }
private void packetGapSlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e) { IntifaceGameHapticsRouterProperties.Default.PacketTimingGapInMS = (int)packetGapSlider.Value; IntifaceGameHapticsRouterProperties.Default.Save(); PacketGapChanged?.Invoke(this, IntifaceGameHapticsRouterProperties.Default.PacketTimingGapInMS); }