From: <an...@us...> - 2007-12-13 14:45:43
|
Revision: 1154 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1154&view=rev Author: and-81 Date: 2007-12-13 06:45:39 -0800 (Thu, 13 Dec 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/IR Server Suite/Applications/Translator/Program.cs trunk/plugins/IR Server Suite/Applications/Virtual Remote/MainForm.cs trunk/plugins/IR Server Suite/Common/IrssUtils/Audio.cs trunk/plugins/IR Server Suite/Common/IrssUtils/Forms/VirtualKeyboard.cs trunk/plugins/IR Server Suite/Common/IrssUtils/Mouse.cs trunk/plugins/IR Server Suite/Input Service/Input Service Configuration/Program.cs trunk/plugins/IR Server Suite/Util Apps/IR File Tool/IrDecoder.cs Modified: trunk/plugins/IR Server Suite/Applications/Translator/Program.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Program.cs 2007-12-13 14:07:17 UTC (rev 1153) +++ trunk/plugins/IR Server Suite/Applications/Translator/Program.cs 2007-12-13 14:45:39 UTC (rev 1154) @@ -1162,7 +1162,7 @@ } else { - throw new ArgumentException(String.Format("Cannot process unrecognized command \"{0}\"", command), "command"); + throw new ArgumentException(String.Format("Cannot process unrecognized command \"{0}\"", command), "commandObj"); } } catch (Exception ex) @@ -1170,7 +1170,7 @@ if (Thread.CurrentThread.Name.Equals(ProcessCommandThreadName, StringComparison.OrdinalIgnoreCase)) IrssLog.Error(ex.ToString()); else - throw ex; + throw; } } Modified: trunk/plugins/IR Server Suite/Applications/Virtual Remote/MainForm.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Virtual Remote/MainForm.cs 2007-12-13 14:07:17 UTC (rev 1153) +++ trunk/plugins/IR Server Suite/Applications/Virtual Remote/MainForm.cs 2007-12-13 14:45:39 UTC (rev 1154) @@ -72,7 +72,7 @@ } } - void LoadSkinXml(string xmlFile) + static void LoadSkinXml(string xmlFile) { XmlDocument doc = new XmlDocument(); doc.Load(xmlFile); Modified: trunk/plugins/IR Server Suite/Common/IrssUtils/Audio.cs =================================================================== --- trunk/plugins/IR Server Suite/Common/IrssUtils/Audio.cs 2007-12-13 14:07:17 UTC (rev 1153) +++ trunk/plugins/IR Server Suite/Common/IrssUtils/Audio.cs 2007-12-13 14:45:39 UTC (rev 1154) @@ -28,13 +28,13 @@ [DllImport("winmm.dll")] static extern uint waveOutGetVolume( - IntPtr hwo, - uint dwVolume); + IntPtr DeviceID, + out uint Volume); [DllImport("winmm.dll")] static extern int waveOutSetVolume( IntPtr DeviceID, - IntPtr Volume); + uint Volume); [DllImport("winmm.dll")] static extern Int32 mixerClose( @@ -132,7 +132,19 @@ { return Beep((uint)frequency, (uint)duration); } + /* + public static bool SetMainVolume(ushort volume) + { + return SetMainVolume(volume, volume); + } + public static bool SetMainVolume(ushort left, ushort right) + { + uint volume = (uint)((right << 16) & left); + + waveOutSetVolume(IntPtr.Zero, volume); + } + */ #endregion Implementation } Modified: trunk/plugins/IR Server Suite/Common/IrssUtils/Forms/VirtualKeyboard.cs =================================================================== --- trunk/plugins/IR Server Suite/Common/IrssUtils/Forms/VirtualKeyboard.cs 2007-12-13 14:07:17 UTC (rev 1153) +++ trunk/plugins/IR Server Suite/Common/IrssUtils/Forms/VirtualKeyboard.cs 2007-12-13 14:45:39 UTC (rev 1154) @@ -61,7 +61,7 @@ TextUpdate(); _timer = new Timer(); - _timer.Interval = 750; + _timer.Interval = 1000; _timer.Tick += new EventHandler(Flash); _timer.Enabled = true; _timer.Start(); Modified: trunk/plugins/IR Server Suite/Common/IrssUtils/Mouse.cs =================================================================== --- trunk/plugins/IR Server Suite/Common/IrssUtils/Mouse.cs 2007-12-13 14:07:17 UTC (rev 1153) +++ trunk/plugins/IR Server Suite/Common/IrssUtils/Mouse.cs 2007-12-13 14:45:39 UTC (rev 1154) @@ -108,15 +108,10 @@ /// <param name="absolute">If true, dx and dy are taken as absolute position. If false, dx and dy are taken as relative to the current position.</param> public static void Move(int dx, int dy, bool absolute) { - //if (absolute) - //Cursor.Position = new Point(dx, dy); - //else - //Cursor.Position = new Point(Curson.Position.X + dx, Cursor.Position.Y + dy); - if (absolute) { - int x = dx * 65536 / Screen.PrimaryScreen.Bounds.Width; - int y = dy * 65536 / Screen.PrimaryScreen.Bounds.Height; + int x = (int)(dx * (65536.0 / Screen.PrimaryScreen.Bounds.Width)); + int y = (int)(dy * (65536.0 / Screen.PrimaryScreen.Bounds.Height)); mouse_event((int)(MouseEvents.Move | MouseEvents.Absolute), x, y, 0, IntPtr.Zero); } Modified: trunk/plugins/IR Server Suite/Input Service/Input Service Configuration/Program.cs =================================================================== --- trunk/plugins/IR Server Suite/Input Service/Input Service Configuration/Program.cs 2007-12-13 14:07:17 UTC (rev 1153) +++ trunk/plugins/IR Server Suite/Input Service/Input Service Configuration/Program.cs 2007-12-13 14:45:39 UTC (rev 1154) @@ -21,20 +21,20 @@ /// <summary> /// Describes the operation mode of the Input Service. /// </summary> - public enum InputServiceMode + enum InputServiceMode { /// <summary> /// Acts as a standard Server (Default). /// </summary> - ServerMode = 0, + ServerMode = 0, /// <summary> /// Relays button presses to another Input Service. /// </summary> - RelayMode = 1, + RelayMode = 1, /// <summary> /// Acts as a repeater for another Input Service's blasting. /// </summary> - RepeaterMode = 2, + RepeaterMode = 2, } #endregion Enumerations Modified: trunk/plugins/IR Server Suite/Util Apps/IR File Tool/IrDecoder.cs =================================================================== --- trunk/plugins/IR Server Suite/Util Apps/IR File Tool/IrDecoder.cs 2007-12-13 14:07:17 UTC (rev 1153) +++ trunk/plugins/IR Server Suite/Util Apps/IR File Tool/IrDecoder.cs 2007-12-13 14:45:39 UTC (rev 1154) @@ -1292,6 +1292,8 @@ if (pulse) break; + Trace.WriteLine("LongPulse at Bit " + RC6_Data.Bit); + if (IsBetween(duration, 750, 1000)) { RC6_Data.Bit--; @@ -1313,6 +1315,8 @@ if (!pulse) break; + Trace.WriteLine("LongSpace at Bit " + RC6_Data.Bit); + if (RC6_Data.Bit == 32) RC6_Data.Bit = 24; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |