ctrl k
  • DoUrVerse/ViewModels/DebugViewModel.cs
    ■ ■ ■ ■ ■
    skipped 104 lines
    105 105   }
    106 106   else if (eventArgs.Type == DeviceInputEventType.Axis)
    107 107   {
    108  - dev = (IDevice)sender;
     108 + stroke = (string) eventArgs.Axis.ToString();
    109 109   }
    110 110   else
    111 111   {
    112 112   return;
    113 113   }
    114 114   
    115  - logline = $"[{dev.Name}] detected unknown input: {args.Description}";
     115 + int instanceNumber = eventArgs.DeviceInstance;
     116 + logline = string.Format("{0} {1}: {2}", type, instanceNumber, stroke);
    116 117   }
    117 118   
    118 119   static InputStroke[] getStrokes(DeviceInputEventArgs args)
    skipped 60 lines
  • DoUrVerseLib/Device/IDevice.cs
    ■ ■ ■ ■ ■ ■
    skipped 58 lines
    59 59  {
    60 60   public string Description { get; set;} = string.Empty;
    61 61  }
    62  -public class UnrecognizedDeviceInputEventArgs : DeviceInputEventArgs
    63  -{
    64  - public string Description { get; set;} = string.Empty;
    65  -}
    66  -public class UnrecognizedDeviceInputEventArgs : DeviceInputEventArgs
    67  -{
    68  - public string Description { get; set;} = string.Empty;
    69  -}
    70  -public class UnrecognizedDeviceInputEventArgs : DeviceInputEventArgs
    71  -{
    72  - public string Description { get; set;} = string.Empty;
    73  -}
    74  -public class UnrecognizedDeviceInputEventArgs : DeviceInputEventArgs
    75  -{
    76  - public string Description { get; set;} = string.Empty;
    77  -}
    78 62  
    79 63  public class KeyboardInputEventArgs : DeviceInputEventArgs
    80 64  {
    skipped 23 lines
Please wait...
Page is in error, reload to recover