From: <an...@us...> - 2008-04-05 02:56:43
|
Revision: 1605 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1605&view=rev Author: and-81 Date: 2008-04-04 19:56:41 -0700 (Fri, 04 Apr 2008) Log Message: ----------- Modified Paths: -------------- trunk/plugins/IR Server Suite/Documentation/new.html trunk/plugins/IR Server Suite/IR Server Plugins/Imon Receiver/Imon Receiver.cs Modified: trunk/plugins/IR Server Suite/Documentation/new.html =================================================================== --- trunk/plugins/IR Server Suite/Documentation/new.html 2008-04-04 16:08:12 UTC (rev 1604) +++ trunk/plugins/IR Server Suite/Documentation/new.html 2008-04-05 02:56:41 UTC (rev 1605) @@ -67,6 +67,7 @@ <LI>Abstract Remote Model: Corrected a bug in the Abstract Remote Map for MP Control Plugin.</LI> <LI>Run Command: Fixed a Force Focus bug.</LI> <LI>Misc: Updated SourceGrid component to version 4.11</LI> +<LI>New Input Plugin: Added experimental Imon support (thanks to Cybrmage for helping).</LI> <LI>Version Numbering: Changed version numbering scheme to use last digit as SVN version number. With zero for release builds. Now Version 1.0.4.2 becomes 1.4.2</LI> </UL></P> <BR> Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Imon Receiver/Imon Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Imon Receiver/Imon Receiver.cs 2008-04-04 16:08:12 UTC (rev 1604) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Imon Receiver/Imon Receiver.cs 2008-04-05 02:56:41 UTC (rev 1605) @@ -628,22 +628,23 @@ bool right = false; bool left = false; /* - if (dataBytes[2] & 0x20 != 0) x |= 1 << 7; // sign bit - if (dataBytes[2] & 0x80 != 0) x |= 1 << 4; - if (dataBytes[2] & 0x40 != 0) x |= 1 << 3; - if (dataBytes[3] & 0x08 != 0) x |= 1 << 2; - if (dataBytes[3] & 0x04 != 0) x |= 1 << 1; - if (dataBytes[3] & 0x02 != 0) x |= 1; + if ((dataBytes[2] & 0x20) != 0) x |= 1 << 7; // sign bit + if ((dataBytes[2] & 0x80) != 0) x |= 1 << 4; + if ((dataBytes[2] & 0x40) != 0) x |= 1 << 3; + if ((dataBytes[3] & 0x08) != 0) x |= 1 << 2; + if ((dataBytes[3] & 0x04) != 0) x |= 1 << 1; + if ((dataBytes[3] & 0x02) != 0) x |= 1; - if (dataBytes[1] & 0x10 != 0) y |= 1 << 7; // sign bit - if (dataBytes[1] & 0x20 != 0) y |= 1 << 4; - if (dataBytes[2] & 0x08 != 0) y |= 1 << 3; - if (dataBytes[2] & 0x04 != 0) y |= 1 << 2; - if (dataBytes[2] & 0x02 != 0) y |= 1 << 1; - if (dataBytes[2] & 0x01 != 0) y |= 1; + if ((dataBytes[1] & 0x10) != 0) y |= 1 << 7; // sign bit + if ((dataBytes[1] & 0x20) != 0) y |= 1 << 4; + if ((dataBytes[2] & 0x08) != 0) y |= 1 << 3; + if ((dataBytes[2] & 0x04) != 0) y |= 1 << 2; + if ((dataBytes[2] & 0x02) != 0) y |= 1 << 1; + if ((dataBytes[2] & 0x01) != 0) y |= 1; */ - //if (dataBytes[1] & 0x80 != 0) right = true; - //if (dataBytes[1] & 0x40 != 0) left = true; + + if ((dataBytes[3] & 0x40) != 0) right = true; + if ((dataBytes[3] & 0x20) != 0) left = true; MouseEvent(x, y, right, left); break; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |