From: <an...@us...> - 2008-03-13 04:44:45
|
Revision: 1456 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1456&view=rev Author: and-81 Date: 2008-03-12 21:44:42 -0700 (Wed, 12 Mar 2008) Log Message: ----------- Modified Paths: -------------- trunk/plugins/IR Server Suite/Applications/IR Server/IRServer.cs trunk/plugins/IR Server Suite/Applications/IR Server/Program.cs trunk/plugins/IR Server Suite/Applications/Virtual Remote Skin Editor/MainForm.cs trunk/plugins/IR Server Suite/Documentation/Common/debug_client.png trunk/plugins/IR Server Suite/Documentation/Input Service/advanced.png trunk/plugins/IR Server Suite/Documentation/Input Service/configuration.png trunk/plugins/IR Server Suite/Documentation/Input Service/index.html trunk/plugins/IR Server Suite/Documentation/Virtual Remote/Skin Editor/skin_editor.png trunk/plugins/IR Server Suite/Documentation/new.html trunk/plugins/IR Server Suite/IR Server Plugins/Direct Input Receiver/DirectInputReceiver.cs trunk/plugins/IR Server Suite/IR Server Suite.nsi trunk/plugins/IR Server Suite/Input Service/Input Service/InputService.cs trunk/plugins/IR Server Suite/Input Service/Input Service/Program.cs Modified: trunk/plugins/IR Server Suite/Applications/IR Server/IRServer.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/IR Server/IRServer.cs 2008-03-12 22:22:58 UTC (rev 1455) +++ trunk/plugins/IR Server Suite/Applications/IR Server/IRServer.cs 2008-03-13 04:44:42 UTC (rev 1456) @@ -1528,7 +1528,7 @@ IrssMessage response = new IrssMessage(MessageType.DetectedBlasters, MessageFlags.Response); string[] detectedBlasters = Program.DetectBlasters(); - if (detectedBlasters != null) + if (detectedBlasters != null && detectedBlasters.Length > 0) { StringBuilder blasters = new StringBuilder(); for (int index = 0; index < detectedBlasters.Length; index++) @@ -1557,7 +1557,7 @@ IrssMessage response = new IrssMessage(MessageType.DetectedReceivers, MessageFlags.Response); string[] detectedReceivers = Program.DetectReceivers(); - if (detectedReceivers != null) + if (detectedReceivers != null && detectedReceivers.Length > 0) { StringBuilder receivers = new StringBuilder(); for (int index = 0; index < detectedReceivers.Length; index++) @@ -1762,13 +1762,13 @@ try { string[] blasters = Program.DetectBlasters(); - if (blasters == null) + if (blasters == null || blasters.Length == 0) _pluginNameTransmit = String.Empty; else _pluginNameTransmit = blasters[0]; string[] receivers = Program.DetectReceivers(); - if (receivers == null) + if (receivers == null || receivers.Length == 0) _pluginNameReceive = null; else _pluginNameReceive = receivers; Modified: trunk/plugins/IR Server Suite/Applications/IR Server/Program.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/IR Server/Program.cs 2008-03-12 22:22:58 UTC (rev 1455) +++ trunk/plugins/IR Server Suite/Applications/IR Server/Program.cs 2008-03-13 04:44:42 UTC (rev 1456) @@ -156,6 +156,8 @@ internal static string[] DetectReceivers() { PluginBase[] plugins = AvailablePlugins(); + if (plugins == null || plugins.Length == 0) + return null; List<string> receivers = new List<string>(); @@ -176,6 +178,8 @@ internal static string[] DetectBlasters() { PluginBase[] plugins = Program.AvailablePlugins(); + if (plugins == null || plugins.Length == 0) + return null; List<string> blasters = new List<string>(); Modified: trunk/plugins/IR Server Suite/Applications/Virtual Remote Skin Editor/MainForm.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Virtual Remote Skin Editor/MainForm.cs 2008-03-12 22:22:58 UTC (rev 1455) +++ trunk/plugins/IR Server Suite/Applications/Virtual Remote Skin Editor/MainForm.cs 2008-03-13 04:44:42 UTC (rev 1456) @@ -436,6 +436,9 @@ void OpenFile() { + openFileDialog.Title = "Open a Virtual Remote Skin ..."; + openFileDialog.Filter = "Xml Files|*.xml"; + if (openFileDialog.ShowDialog(this) == DialogResult.OK) { _fileName = openFileDialog.FileName; Modified: trunk/plugins/IR Server Suite/Documentation/Common/debug_client.png =================================================================== (Binary files differ) Modified: trunk/plugins/IR Server Suite/Documentation/Input Service/advanced.png =================================================================== (Binary files differ) Modified: trunk/plugins/IR Server Suite/Documentation/Input Service/configuration.png =================================================================== (Binary files differ) Modified: trunk/plugins/IR Server Suite/Documentation/Input Service/index.html =================================================================== --- trunk/plugins/IR Server Suite/Documentation/Input Service/index.html 2008-03-12 22:22:58 UTC (rev 1455) +++ trunk/plugins/IR Server Suite/Documentation/Input Service/index.html 2008-03-13 04:44:42 UTC (rev 1456) @@ -28,5 +28,13 @@ </UL> </P> +<P><B>Use the Abstract Remote Model</B><BR> +This option enables Abstract Remote Model parsing. This feature converts button presses from a variety of recognised remotes into one common set of buttons. So for example, instead of two different remotes sending "57823" and "abab8238" as the remote button id for the Play button they would both be converted to simply "Play". This simplifies the configuration process but also keeps the initial flexibility of IR Server Suite because any button press that does not map to the Abstract Remote Model will continue to be handled in the old way.<BR> +<BR> +This feature is disabled by default in Version 1.0.4.2 but will become enabled by default in later versions.</P> + +<P><B>Set Priority:</B><BR> +This option lets you fine tune the process priority of the Input Service. If you find that your PC is running too slowly and remote input is delayed or performance is poor you might find that you will get a response rate increase by increasing the Process Priority of the Input Service.</P> + </BODY> </HTML> Modified: trunk/plugins/IR Server Suite/Documentation/Virtual Remote/Skin Editor/skin_editor.png =================================================================== (Binary files differ) Modified: trunk/plugins/IR Server Suite/Documentation/new.html =================================================================== --- trunk/plugins/IR Server Suite/Documentation/new.html 2008-03-12 22:22:58 UTC (rev 1455) +++ trunk/plugins/IR Server Suite/Documentation/new.html 2008-03-13 04:44:42 UTC (rev 1456) @@ -52,6 +52,8 @@ <LI>Dbox Tuner: Added a Command Line Dbox Tuner application to the installer.</LI> <LI>Hcw Pvr Tuner: Added a Command Line HCW PVR Tuner application to the installer.</LI> <LI>Girder Plugin: Fixed the girder plugin to work as an IR receiver. Still haven't completed the blaster/command functions yet.</LI> +<LI>Installer: Fixed a registry setting so that Input Service should autoconfigure correctly from now on.</LI> +<LI>Direct Input Plugin: Fixed a detection and configuration bug.</LI> </UL></P> <BR> Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Direct Input Receiver/DirectInputReceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Direct Input Receiver/DirectInputReceiver.cs 2008-03-12 22:22:58 UTC (rev 1455) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Direct Input Receiver/DirectInputReceiver.cs 2008-03-13 04:44:42 UTC (rev 1456) @@ -190,7 +190,9 @@ #if TRACE Trace.WriteLine("No direct input device selected in plugin configuration, using first found"); #endif - DeviceInstance di = (DeviceInstance)_deviceList.Current; + _deviceList.Reset(); // Move to the position before the first in the device list. + _deviceList.MoveNext(); // Move to the first position in the device list. + DeviceInstance di = (DeviceInstance)_deviceList.Current; // Retreive the first position in the device list. _selectedDeviceGUID = di.InstanceGuid.ToString(); } @@ -327,6 +329,7 @@ if (_deviceList == null) return false; + _deviceList.Reset(); foreach (DeviceInstance di in _deviceList) if (_selectedDeviceGUID.Equals(di.InstanceGuid.ToString(), StringComparison.OrdinalIgnoreCase)) return _diListener.InitDevice(di.InstanceGuid); Modified: trunk/plugins/IR Server Suite/IR Server Suite.nsi =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite.nsi 2008-03-12 22:22:58 UTC (rev 1455) +++ trunk/plugins/IR Server Suite/IR Server Suite.nsi 2008-03-13 04:44:42 UTC (rev 1456) @@ -307,6 +307,11 @@ ; Create install directory CreateDirectory "$DIR_INSTALL" + ; Write the installation paths into the registry + WriteRegStr HKLM "Software\${PRODUCT_NAME}" "Install_Dir" "$DIR_INSTALL" + WriteRegStr HKLM "Software\${PRODUCT_NAME}" "MediaPortal_Dir" "$DIR_MEDIAPORTAL" + WriteRegStr HKLM "Software\${PRODUCT_NAME}" "TVServer_Dir" "$DIR_TVSERVER" + ; Write documentation !ifdef DEBUG DetailPrint "Warning: Documentation is not included in debug builds" @@ -805,11 +810,6 @@ CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Log Files.lnk" "$APPDATA\${PRODUCT_NAME}\Logs" CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Uninstall.lnk" "$DIR_INSTALL\Uninstall ${PRODUCT_NAME}.exe" "" "$DIR_INSTALL\Uninstall ${PRODUCT_NAME}.exe" - ; Write the installation paths into the registry - WriteRegStr HKLM "Software\${PRODUCT_NAME}" "Install_Dir" "$DIR_INSTALL" - WriteRegStr HKLM "Software\${PRODUCT_NAME}" "MediaPortal_Dir" "$DIR_MEDIAPORTAL" - WriteRegStr HKLM "Software\${PRODUCT_NAME}" "TVServer_Dir" "$DIR_TVSERVER" - ; Write the uninstall keys for Windows WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" "DisplayName" "${PRODUCT_NAME}" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" "UninstallString" "$DIR_INSTALL\Uninstall ${PRODUCT_NAME}.exe" Modified: trunk/plugins/IR Server Suite/Input Service/Input Service/InputService.cs =================================================================== --- trunk/plugins/IR Server Suite/Input Service/Input Service/InputService.cs 2008-03-12 22:22:58 UTC (rev 1455) +++ trunk/plugins/IR Server Suite/Input Service/Input Service/InputService.cs 2008-03-13 04:44:42 UTC (rev 1456) @@ -1487,7 +1487,7 @@ IrssMessage response = new IrssMessage(MessageType.DetectedBlasters, MessageFlags.Response); string[] detectedBlasters = Program.DetectBlasters(); - if (detectedBlasters != null) + if (detectedBlasters != null && detectedBlasters.Length > 0) { StringBuilder blasters = new StringBuilder(); for (int index = 0; index < detectedBlasters.Length; index++) @@ -1516,7 +1516,7 @@ IrssMessage response = new IrssMessage(MessageType.DetectedReceivers, MessageFlags.Response); string[] detectedReceivers = Program.DetectReceivers(); - if (detectedReceivers != null) + if (detectedReceivers != null && detectedReceivers.Length > 0) { StringBuilder receivers = new StringBuilder(); for (int index = 0; index < detectedReceivers.Length; index++) @@ -1701,13 +1701,13 @@ try { string[] blasters = Program.DetectBlasters(); - if (blasters == null) + if (blasters == null || blasters.Length == 0) _pluginNameTransmit = String.Empty; else _pluginNameTransmit = blasters[0]; string[] receivers = Program.DetectReceivers(); - if (receivers == null) + if (receivers == null || receivers.Length == 0) _pluginNameReceive = null; else _pluginNameReceive = receivers; Modified: trunk/plugins/IR Server Suite/Input Service/Input Service/Program.cs =================================================================== --- trunk/plugins/IR Server Suite/Input Service/Input Service/Program.cs 2008-03-12 22:22:58 UTC (rev 1455) +++ trunk/plugins/IR Server Suite/Input Service/Input Service/Program.cs 2008-03-13 04:44:42 UTC (rev 1456) @@ -168,6 +168,8 @@ internal static string[] DetectReceivers() { PluginBase[] plugins = AvailablePlugins(); + if (plugins == null || plugins.Length == 0) + return null; List<string> receivers = new List<string>(); @@ -188,6 +190,8 @@ internal static string[] DetectBlasters() { PluginBase[] plugins = Program.AvailablePlugins(); + if (plugins == null || plugins.Length == 0) + return null; List<string> blasters = new List<string>(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |