/// <summary> /// Refreshes the current state. /// </summary> /// <returns></returns> public bool RefreshInput() { foreach (var type in (XInputTypes[])Enum.GetValues(typeof(XInputTypes))) { var mapping = mapper.GetMapping(type); if (mapping != null) { double value = 0; if (mapping.InputType != null) { value = source.Get(mapping.InputType); } values[type] = mapping.GetValue(value); } else { } } dPad = source.DPad; InputChanged?.Invoke(); return(true); }