Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
Description
Trying to create a custom mapping for DirectInput devices results in a .Net error popup (see below for details). Also saving the mapping afterwards results in an empty custom mappings file in InputDeviceMappings\custom\.
h4. Steps to Reproduce
1. start setup
2. choose remote -> direct input
3. click on mapping
4. open key "pov N" -> All layers -> click on "No condition"
************** Exception Text **************
System.InvalidCastException: Unable to cast object of type 'System.String' to type 'MediaPortal.GUI.Library.Key'.
at MediaPortal.Configuration.InputMappingForm.treeMapping_AfterSelect(Object sender, TreeViewEventArgs e)
at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)
at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)
at System.Windows.Forms.TreeView.WmNotify(Message& m)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
h4. Steps to Reproduce
1. start setup
2. choose remote -> direct input
3. click on mapping
4. open key "pov N" -> All layers -> click on "No condition"
************** Exception Text **************
System.InvalidCastException: Unable to cast object of type 'System.String' to type 'MediaPortal.GUI.Library.Key'.
at MediaPortal.Configuration.InputMappingForm.treeMapping_AfterSelect(Object sender, TreeViewEventArgs e)
at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)
at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)
at System.Windows.Forms.TreeView.WmNotify(Message& m)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)