From: <an...@us...> - 2007-10-10 13:20:18
|
Revision: 992 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=992&view=rev Author: and-81 Date: 2007-10-10 06:20:15 -0700 (Wed, 10 Oct 2007) Log Message: ----------- Added Paths: ----------- trunk/plugins/IR Server Suite/Input Service/Input Service/Install.cmd trunk/plugins/IR Server Suite/Input Service/Input Service/Uninstall.cmd Added: trunk/plugins/IR Server Suite/Input Service/Input Service/Install.cmd =================================================================== --- trunk/plugins/IR Server Suite/Input Service/Input Service/Install.cmd (rev 0) +++ trunk/plugins/IR Server Suite/Input Service/Input Service/Install.cmd 2007-10-10 13:20:15 UTC (rev 992) @@ -0,0 +1 @@ +"Input Service.exe" /install \ No newline at end of file Added: trunk/plugins/IR Server Suite/Input Service/Input Service/Uninstall.cmd =================================================================== --- trunk/plugins/IR Server Suite/Input Service/Input Service/Uninstall.cmd (rev 0) +++ trunk/plugins/IR Server Suite/Input Service/Input Service/Uninstall.cmd 2007-10-10 13:20:15 UTC (rev 992) @@ -0,0 +1 @@ +"Input Service.exe" /uninstall \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <an...@us...> - 2008-03-04 12:48:42
|
Revision: 1422 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1422&view=rev Author: and-81 Date: 2008-03-04 04:48:40 -0800 (Tue, 04 Mar 2008) Log Message: ----------- Modified Paths: -------------- trunk/plugins/IR Server Suite/Input Service/Input Service/Input Service.csproj trunk/plugins/IR Server Suite/Input Service/Input Service/InputService.cs Added Paths: ----------- trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/ trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/Direct Input/ trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/Direct Input/Direct Input.xml trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/FusionREMOTE/ trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/FusionREMOTE/FusionHDTV.xml trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/FusionREMOTE/FusionREMOTE.xml trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/IgorPlug/ trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/IgorPlug/Microsoft MCE.xml trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/Microsoft MCE/ trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/Microsoft MCE/Microsoft MCE.xml trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/USB-UIRT/ trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/USB-UIRT/Microsoft MCE.xml trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/Windows Messages/ trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/Windows Messages/Virtual Remote.xml trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/XBCDRC/ trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/XBCDRC/Xbox.xml trunk/plugins/IR Server Suite/Input Service/Input Service/RemoteTable.Designer.cs trunk/plugins/IR Server Suite/Input Service/Input Service/RemoteTable.xsc trunk/plugins/IR Server Suite/Input Service/Input Service/RemoteTable.xsd trunk/plugins/IR Server Suite/Input Service/Input Service/RemoteTable.xss Added: trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/Direct Input/Direct Input.xml =================================================================== --- trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/Direct Input/Direct Input.xml (rev 0) +++ trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/Direct Input/Direct Input.xml 2008-03-04 12:48:40 UTC (rev 1422) @@ -0,0 +1,27 @@ +<?xml version="1.0" standalone="yes"?> +<DocumentElement> + <RemoteTable RawCode="povN" AbstractButton="Up" /> + <RemoteTable RawCode="povS" AbstractButton="Down" /> + <RemoteTable RawCode="povW" AbstractButton="Left" /> + <RemoteTable RawCode="povE" AbstractButton="Right" /> + <RemoteTable RawCode="button1" AbstractButton="OK" /> + <RemoteTable RawCode="axisYDown" AbstractButton="VolumeUp" /> + <RemoteTable RawCode="axisYUp" AbstractButton="VolumeDown" /> + <RemoteTable RawCode="axisXUp" AbstractButton="ChannelUp" /> + <RemoteTable RawCode="axisXDown" AbstractButton="ChannelDown" /> + <RemoteTable RawCode="button7" AbstractButton="Start" /> + <RemoteTable RawCode="button8" AbstractButton="Back" /> + <RemoteTable RawCode="button10" AbstractButton="Info" /> + <RemoteTable RawCode="button9" AbstractButton="Mute" /> + <RemoteTable RawCode="button4" AbstractButton="Play" /> + <RemoteTable RawCode="button3" AbstractButton="Pause" /> + <RemoteTable RawCode="button2" AbstractButton="Stop" /> + <RemoteTable RawCode="button12" AbstractButton="FastForward" /> + <RemoteTable RawCode="button11" AbstractButton="Rewind" /> + <RemoteTable RawCode="button5" AbstractButton="NextChapter" /> + <RemoteTable RawCode="button6" AbstractButton="PreviousChapter" /> + <RemoteTable RawCode="rotationXUp" AbstractButton="Red" /> + <RemoteTable RawCode="rotationYUp" AbstractButton="Green" /> + <RemoteTable RawCode="rotationYDown" AbstractButton="Yellow" /> + <RemoteTable RawCode="rotationXDown" AbstractButton="Blue" /> +</DocumentElement> \ No newline at end of file Added: trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/FusionREMOTE/FusionHDTV.xml =================================================================== --- trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/FusionREMOTE/FusionHDTV.xml (rev 0) +++ trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/FusionREMOTE/FusionHDTV.xml 2008-03-04 12:48:40 UTC (rev 1422) @@ -0,0 +1,39 @@ +<?xml version="1.0" standalone="yes"?> +<DocumentElement> + <RemoteTable RawCode="00F90000" AbstractButton="Up" /> + <RemoteTable RawCode="01F90000" AbstractButton="Down" /> + <RemoteTable RawCode="03F90000" AbstractButton="Left" /> + <RemoteTable RawCode="02F90000" AbstractButton="Right" /> + <RemoteTable RawCode="1FF90000" AbstractButton="OK" /> + <RemoteTable RawCode="0DF90000" AbstractButton="Mute" /> + <RemoteTable RawCode="10F90000" AbstractButton="Number0" /> + <RemoteTable RawCode="11F90000" AbstractButton="Number1" /> + <RemoteTable RawCode="12F90000" AbstractButton="Number2" /> + <RemoteTable RawCode="13F90000" AbstractButton="Number3" /> + <RemoteTable RawCode="14F90000" AbstractButton="Number4" /> + <RemoteTable RawCode="15F90000" AbstractButton="Number5" /> + <RemoteTable RawCode="16F90000" AbstractButton="Number6" /> + <RemoteTable RawCode="17F90000" AbstractButton="Number7" /> + <RemoteTable RawCode="18F90000" AbstractButton="Number8" /> + <RemoteTable RawCode="19F90000" AbstractButton="Number9" /> + <RemoteTable RawCode="1EF90000" AbstractButton="Stop" /> + <RemoteTable RawCode="1DF90000" AbstractButton="FastForward" /> + <RemoteTable RawCode="1CF90000" AbstractButton="Rewind" /> + <RemoteTable RawCode="1BF90000" AbstractButton="Record" /> + <RemoteTable RawCode="0AF90000" AbstractButton="Power" /> + <RemoteTable RawCode="0CF90000" AbstractButton="Power2" /> + <RemoteTable RawCode="05F90000" AbstractButton="TeletextRed" /> + <RemoteTable RawCode="09F90000" AbstractButton="TeletextGreen" /> + <RemoteTable RawCode="42F90000" AbstractButton="TeletextYellow" /> + <RemoteTable RawCode="43F90000" AbstractButton="TeletextBlue" /> + <RemoteTable RawCode="08F90000" AbstractButton="Menu" /> + <RemoteTable RawCode="0EF90000" AbstractButton="TaskSwap" /> + <RemoteTable RawCode="04F90000" AbstractButton="Fullscreen" /> + <RemoteTable RawCode="07F90000" AbstractButton="AspectRatio" /> + <RemoteTable RawCode="41F90000" AbstractButton="Videos" /> + <RemoteTable RawCode="06F90000" AbstractButton="TV" /> + <RemoteTable RawCode="0BF90000" AbstractButton="Guide" /> + <RemoteTable RawCode="0FF90000" AbstractButton="LiveTV" /> + <RemoteTable RawCode="1AF90000" AbstractButton="Snapshot" /> + <RemoteTable RawCode="40F90000" AbstractButton="Open" /> +</DocumentElement> \ No newline at end of file Added: trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/FusionREMOTE/FusionREMOTE.xml =================================================================== --- trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/FusionREMOTE/FusionREMOTE.xml (rev 0) +++ trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/FusionREMOTE/FusionREMOTE.xml 2008-03-04 12:48:40 UTC (rev 1422) @@ -0,0 +1,48 @@ +<?xml version="1.0" standalone="yes"?> +<DocumentElement> + <RemoteTable RawCode="51FE0100" AbstractButton="Up" /> + <RemoteTable RawCode="53FE0100" AbstractButton="Down" /> + <RemoteTable RawCode="5BFE0100" AbstractButton="Left" /> + <RemoteTable RawCode="5FFE0100" AbstractButton="Right" /> + <RemoteTable RawCode="5EFE0100" AbstractButton="OK" /> + <RemoteTable RawCode="15FE0100" AbstractButton="VolumeUp" /> + <RemoteTable RawCode="05FE0100" AbstractButton="VolumeDown" /> + <RemoteTable RawCode="11FE0100" AbstractButton="ChannelUp" /> + <RemoteTable RawCode="09FE0100" AbstractButton="ChannelDown" /> + <RemoteTable RawCode="42FE0100" AbstractButton="Start" /> + <RemoteTable RawCode="49FE0100" AbstractButton="Back" /> + <RemoteTable RawCode="59FE0100" AbstractButton="Info" /> + <RemoteTable RawCode="57FE0100" AbstractButton="Mute" /> + <RemoteTable RawCode="03FE0100" AbstractButton="Number0" /> + <RemoteTable RawCode="0BFE0100" AbstractButton="Number1" /> + <RemoteTable RawCode="17FE0100" AbstractButton="Number2" /> + <RemoteTable RawCode="1BFE0100" AbstractButton="Number3" /> + <RemoteTable RawCode="07FE0100" AbstractButton="Number4" /> + <RemoteTable RawCode="50FE0100" AbstractButton="Number5" /> + <RemoteTable RawCode="54FE0100" AbstractButton="Number6" /> + <RemoteTable RawCode="48FE0100" AbstractButton="Number7" /> + <RemoteTable RawCode="4CFE0100" AbstractButton="Number8" /> + <RemoteTable RawCode="58FE0100" AbstractButton="Number9" /> + <RemoteTable RawCode="47FE0100" AbstractButton="PlayPause" /> + <RemoteTable RawCode="0DFE0100" AbstractButton="Stop" /> + <RemoteTable RawCode="4FFE0100" AbstractButton="FastForward" /> + <RemoteTable RawCode="43FE0100" AbstractButton="Rewind" /> + <RemoteTable RawCode="01FE0100" AbstractButton="Record" /> + <RemoteTable RawCode="12FE0100" AbstractButton="NextChapter" /> + <RemoteTable RawCode="0FFE0100" AbstractButton="PreviousChapter" /> + <RemoteTable RawCode="46FE0100" AbstractButton="Power" /> + <RemoteTable RawCode="4EFE0100" AbstractButton="Power2" /> + <RemoteTable RawCode="4DFE0100" AbstractButton="Menu" /> + <RemoteTable RawCode="55FE0100" AbstractButton="TaskSwap" /> + <RemoteTable RawCode="1FFE0100" AbstractButton="Fullscreen" /> + <RemoteTable RawCode="13FE0100" AbstractButton="AspectRatio" /> + <RemoteTable RawCode="16FE0100" AbstractButton="Setup" /> + <RemoteTable RawCode="0EFE0100" AbstractButton="Music" /> + <RemoteTable RawCode="1EFE0100" AbstractButton="Pictures" /> + <RemoteTable RawCode="1AFE0100" AbstractButton="DVD" /> + <RemoteTable RawCode="02FE0100" AbstractButton="TV" /> + <RemoteTable RawCode="0AFE0100" AbstractButton="Guide" /> + <RemoteTable RawCode="5AFE0100" AbstractButton="LiveTV" /> + <RemoteTable RawCode="52FE0100" AbstractButton="Snapshot" /> + <RemoteTable RawCode="19FE0100" AbstractButton="Open" /> +</DocumentElement> \ No newline at end of file Added: trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/IgorPlug/Microsoft MCE.xml =================================================================== --- trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/IgorPlug/Microsoft MCE.xml (rev 0) +++ trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/IgorPlug/Microsoft MCE.xml 2008-03-04 12:48:40 UTC (rev 1422) @@ -0,0 +1,55 @@ +<?xml version="1.0" standalone="yes"?> +<DocumentElement> + <RemoteTable RawCode="31642" AbstractButton="Power" /> + <RemoteTable RawCode="31649" AbstractButton="Teletext_Blue" /> + <RemoteTable RawCode="31650" AbstractButton="Teletext_Yellow" /> + <RemoteTable RawCode="31651" AbstractButton="Teletext_Green" /> + <RemoteTable RawCode="31652" AbstractButton="Teletext_Red" /> + <RemoteTable RawCode="31653" AbstractButton="Teletext" /> + <RemoteTable RawCode="31663" AbstractButton="Radio" /> + <RemoteTable RawCode="31665" AbstractButton="Print" /> + <RemoteTable RawCode="31669" AbstractButton="Videos" /> + <RemoteTable RawCode="31670" AbstractButton="Pictures" /> + <RemoteTable RawCode="31671" AbstractButton="Recorded_TV" /> + <RemoteTable RawCode="31672" AbstractButton="Music" /> + <RemoteTable RawCode="31673" AbstractButton="TV" /> + <RemoteTable RawCode="31705" AbstractButton="Guide" /> + <RemoteTable RawCode="31706" AbstractButton="Live_TV" /> + <RemoteTable RawCode="31707" AbstractButton="DVD_Menu" /> + <RemoteTable RawCode="31708" AbstractButton="Back" /> + <RemoteTable RawCode="31709" AbstractButton="OK" /> + <RemoteTable RawCode="31710" AbstractButton="Right" /> + <RemoteTable RawCode="31711" AbstractButton="Left" /> + <RemoteTable RawCode="31712" AbstractButton="Down" /> + <RemoteTable RawCode="31713" AbstractButton="Up" /> + <RemoteTable RawCode="31714" AbstractButton="Star" /> + <RemoteTable RawCode="31715" AbstractButton="Hash" /> + <RemoteTable RawCode="31716" AbstractButton="Replay" /> + <RemoteTable RawCode="31717" AbstractButton="Skip" /> + <RemoteTable RawCode="31718" AbstractButton="Stop" /> + <RemoteTable RawCode="31719" AbstractButton="Pause" /> + <RemoteTable RawCode="31720" AbstractButton="Record" /> + <RemoteTable RawCode="31721" AbstractButton="Play" /> + <RemoteTable RawCode="31722" AbstractButton="Rewind" /> + <RemoteTable RawCode="31723" AbstractButton="Forward" /> + <RemoteTable RawCode="31724" AbstractButton="Channel_Down" /> + <RemoteTable RawCode="31725" AbstractButton="Channel_Up" /> + <RemoteTable RawCode="31726" AbstractButton="Volume_Down" /> + <RemoteTable RawCode="31727" AbstractButton="Volume_Up" /> + <RemoteTable RawCode="31728" AbstractButton="Info" /> + <RemoteTable RawCode="31729" AbstractButton="Mute" /> + <RemoteTable RawCode="31730" AbstractButton="Start" /> + <RemoteTable RawCode="31731" AbstractButton="Power_2" /> + <RemoteTable RawCode="31732" AbstractButton="Enter" /> + <RemoteTable RawCode="31733" AbstractButton="Escape" /> + <RemoteTable RawCode="31734" AbstractButton="Number_9" /> + <RemoteTable RawCode="31735" AbstractButton="Number_8" /> + <RemoteTable RawCode="31736" AbstractButton="Number_7" /> + <RemoteTable RawCode="31737" AbstractButton="Number_6" /> + <RemoteTable RawCode="31738" AbstractButton="Number_5" /> + <RemoteTable RawCode="31739" AbstractButton="Number_4" /> + <RemoteTable RawCode="31740" AbstractButton="Number_3" /> + <RemoteTable RawCode="31741" AbstractButton="Number_2" /> + <RemoteTable RawCode="31742" AbstractButton="Number_1" /> + <RemoteTable RawCode="31743" AbstractButton="Number_0" /> +</DocumentElement> \ No newline at end of file Added: trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/Microsoft MCE/Microsoft MCE.xml =================================================================== --- trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/Microsoft MCE/Microsoft MCE.xml (rev 0) +++ trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/Microsoft MCE/Microsoft MCE.xml 2008-03-04 12:48:40 UTC (rev 1422) @@ -0,0 +1,54 @@ +<?xml version="1.0" standalone="yes"?> +<DocumentElement> + <RemoteTable RawCode="31713" AbstractButton="Up" /> + <RemoteTable RawCode="31712" AbstractButton="Down" /> + <RemoteTable RawCode="31711" AbstractButton="Left" /> + <RemoteTable RawCode="31710" AbstractButton="Right" /> + <RemoteTable RawCode="31709" AbstractButton="OK" /> + <RemoteTable RawCode="31727" AbstractButton="VolumeUp" /> + <RemoteTable RawCode="31726" AbstractButton="VolumeDown" /> + <RemoteTable RawCode="31725" AbstractButton="ChannelUp" /> + <RemoteTable RawCode="31724" AbstractButton="ChannelDown" /> + <RemoteTable RawCode="31730" AbstractButton="Start" /> + <RemoteTable RawCode="31708" AbstractButton="Back" /> + <RemoteTable RawCode="31728" AbstractButton="Info" /> + <RemoteTable RawCode="31729" AbstractButton="Mute" /> + <RemoteTable RawCode="31743" AbstractButton="Number0" /> + <RemoteTable RawCode="31742" AbstractButton="Number1" /> + <RemoteTable RawCode="31741" AbstractButton="Number2" /> + <RemoteTable RawCode="31740" AbstractButton="Number3" /> + <RemoteTable RawCode="31739" AbstractButton="Number4" /> + <RemoteTable RawCode="31738" AbstractButton="Number5" /> + <RemoteTable RawCode="31737" AbstractButton="Number6" /> + <RemoteTable RawCode="31736" AbstractButton="Number7" /> + <RemoteTable RawCode="31735" AbstractButton="Number8" /> + <RemoteTable RawCode="31734" AbstractButton="Number9" /> + <RemoteTable RawCode="31721" AbstractButton="Play" /> + <RemoteTable RawCode="31719" AbstractButton="Pause" /> + <RemoteTable RawCode="31718" AbstractButton="Stop" /> + <RemoteTable RawCode="31723" AbstractButton="FastForward" /> + <RemoteTable RawCode="31722" AbstractButton="Rewind" /> + <RemoteTable RawCode="31720" AbstractButton="Record" /> + <RemoteTable RawCode="31717" AbstractButton="NextChapter" /> + <RemoteTable RawCode="31716" AbstractButton="PreviousChapter" /> + <RemoteTable RawCode="31642" AbstractButton="Power" /> + <RemoteTable RawCode="31731" AbstractButton="Power2" /> + <RemoteTable RawCode="31653" AbstractButton="Teletext" /> + <RemoteTable RawCode="31652" AbstractButton="TeletextRed" /> + <RemoteTable RawCode="31651" AbstractButton="TeletextGreen" /> + <RemoteTable RawCode="31650" AbstractButton="TeletextYellow" /> + <RemoteTable RawCode="31649" AbstractButton="TeletextBlue" /> + <RemoteTable RawCode="31733" AbstractButton="Clear" /> + <RemoteTable RawCode="31732" AbstractButton="Enter" /> + <RemoteTable RawCode="31715" AbstractButton="Hash" /> + <RemoteTable RawCode="31714" AbstractButton="Star" /> + <RemoteTable RawCode="31672" AbstractButton="Music" /> + <RemoteTable RawCode="31670" AbstractButton="Pictures" /> + <RemoteTable RawCode="31669" AbstractButton="Videos" /> + <RemoteTable RawCode="31707" AbstractButton="DVD" /> + <RemoteTable RawCode="31673" AbstractButton="TV" /> + <RemoteTable RawCode="31705" AbstractButton="Guide" /> + <RemoteTable RawCode="31706" AbstractButton="LiveTV" /> + <RemoteTable RawCode="31663" AbstractButton="Radio" /> + <RemoteTable RawCode="31665" AbstractButton="Print" /> +</DocumentElement> \ No newline at end of file Added: trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/USB-UIRT/Microsoft MCE.xml =================================================================== --- trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/USB-UIRT/Microsoft MCE.xml (rev 0) +++ trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/USB-UIRT/Microsoft MCE.xml 2008-03-04 12:48:40 UTC (rev 1422) @@ -0,0 +1,95 @@ +<?xml version="1.0" standalone="yes"?> +<DocumentElement> + <RemoteTable RawCode="432689F040F1" AbstractButton="Up" /> + <RemoteTable RawCode="432688F050F1" AbstractButton="Up" /> + <RemoteTable RawCode="432489F040F1" AbstractButton="Down" /> + <RemoteTable RawCode="432488F050F1" AbstractButton="Down" /> + <RemoteTable RawCode="432451F040F1" AbstractButton="Left" /> + <RemoteTable RawCode="432450F050F1" AbstractButton="Left" /> + <RemoteTable RawCode="412F51F040F1" AbstractButton="Right" /> + <RemoteTable RawCode="412F50F050F1" AbstractButton="Right" /> + <RemoteTable RawCode="412F52F040F1" AbstractButton="OK" /> + <RemoteTable RawCode="412F53F050F1" AbstractButton="OK" /> + <RemoteTable RawCode="43249DF040F1" AbstractButton="VolumeUp" /> + <RemoteTable RawCode="43249CF050F1" AbstractButton="VolumeUp" /> + <RemoteTable RawCode="412F9DF040F1" AbstractButton="VolumeDown" /> + <RemoteTable RawCode="412F9CF050F1" AbstractButton="VolumeDown" /> + <RemoteTable RawCode="412F9EF040F1" AbstractButton="ChannelUp" /> + <RemoteTable RawCode="412F9FF050F1" AbstractButton="ChannelUp" /> + <RemoteTable RawCode="412F9FF040F1" AbstractButton="ChannelDown" /> + <RemoteTable RawCode="412F9EF050F1" AbstractButton="ChannelDown" /> + <RemoteTable RawCode="412FAAF040F1" AbstractButton="Start" /> + <RemoteTable RawCode="412FABF050F1" AbstractButton="Start" /> + <RemoteTable RawCode="412F53F040F1" AbstractButton="Back" /> + <RemoteTable RawCode="412F52F050F1" AbstractButton="Back" /> + <RemoteTable RawCode="4324ABF040F1" AbstractButton="Info" /> + <RemoteTable RawCode="4324AAF050F1" AbstractButton="Info" /> + <RemoteTable RawCode="4326ABF040F1" AbstractButton="Mute" /> + <RemoteTable RawCode="4326AAF050F1" AbstractButton="Mute" /> + <RemoteTable RawCode="450CA1F040F1" AbstractButton="Number0" /> + <RemoteTable RawCode="450CA0F050F1" AbstractButton="Number0" /> + <RemoteTable RawCode="4325A1F040F1" AbstractButton="Number1" /> + <RemoteTable RawCode="4325A0F050F1" AbstractButton="Number1" /> + <RemoteTable RawCode="4323A1F040F1" AbstractButton="Number2" /> + <RemoteTable RawCode="4323A0F050F1" AbstractButton="Number2" /> + <RemoteTable RawCode="4321A1F040F1" AbstractButton="Number3" /> + <RemoteTable RawCode="4321A0F050F1" AbstractButton="Number3" /> + <RemoteTable RawCode="4322A2F040F1" AbstractButton="Number4" /> + <RemoteTable RawCode="4322A3F050F1" AbstractButton="Number4" /> + <RemoteTable RawCode="412EA2F040F1" AbstractButton="Number5" /> + <RemoteTable RawCode="412EA3F050F1" AbstractButton="Number5" /> + <RemoteTable RawCode="4322A3F040F1" AbstractButton="Number6" /> + <RemoteTable RawCode="4322A2F050F1" AbstractButton="Number6" /> + <RemoteTable RawCode="4320A3F040F1" AbstractButton="Number7" /> + <RemoteTable RawCode="4320A2F050F1" AbstractButton="Number7" /> + <RemoteTable RawCode="4324AEF040F1" AbstractButton="Number8" /> + <RemoteTable RawCode="4324AFF050F1" AbstractButton="Number8" /> + <RemoteTable RawCode="412FAEF040F1" AbstractButton="Number9" /> + <RemoteTable RawCode="412FAFF050F1" AbstractButton="Number9" /> + <RemoteTable RawCode="412E96F040F1" AbstractButton="Play" /> + <RemoteTable RawCode="412E97F050F1" AbstractButton="Play" /> + <RemoteTable RawCode="43248CF040F1" AbstractButton="Pause" /> + <RemoteTable RawCode="43248DF050F1" AbstractButton="Pause" /> + <RemoteTable RawCode="412F8CF040F1" AbstractButton="Stop" /> + <RemoteTable RawCode="412F8DF050F1" AbstractButton="Stop" /> + <RemoteTable RawCode="412E92F040F1" AbstractButton="FastForward" /> + <RemoteTable RawCode="412E93F050F1" AbstractButton="FastForward" /> + <RemoteTable RawCode="3F2C39F040F1" AbstractButton="Rewind" /> + <RemoteTable RawCode="3F2C38F050F1" AbstractButton="Rewind" /> + <RemoteTable RawCode="412E97F040F1" AbstractButton="Record" /> + <RemoteTable RawCode="412E96F050F1" AbstractButton="Record" /> + <RemoteTable RawCode="412F8FF040F1" AbstractButton="NextChapter" /> + <RemoteTable RawCode="412F8EF050F1" AbstractButton="NextChapter" /> + <RemoteTable RawCode="412F8EF040F1" AbstractButton="PreviousChapter" /> + <RemoteTable RawCode="412F8FF050F1" AbstractButton="PreviousChapter" /> + <RemoteTable RawCode="3F2C4FF240F1" AbstractButton="Power" /> + <RemoteTable RawCode="3F2C4EF250F1" AbstractButton="Power" /> + <RemoteTable RawCode="4326AAF040F1" AbstractButton="Power2" /> + <RemoteTable RawCode="4326ABF050F1" AbstractButton="Power2" /> + <RemoteTable RawCode="3F2C1CF340F1" AbstractButton="Teletext" /> + <RemoteTable RawCode="3F2C1DF350F1" AbstractButton="Teletext" /> + <RemoteTable RawCode="3F2C1EF340F1" AbstractButton="TeletextRed" /> + <RemoteTable RawCode="3F2C1FF350F1" AbstractButton="TeletextRed" /> + <RemoteTable RawCode="412EC4F340F1" AbstractButton="TeletextGreen" /> + <RemoteTable RawCode="412EC5F350F1" AbstractButton="TeletextGreen" /> + <RemoteTable RawCode="3F2C12F340F1" AbstractButton="TeletextYellow" /> + <RemoteTable RawCode="3F2C13F350F1" AbstractButton="TeletextYellow" /> + <RemoteTable RawCode="412EC0F340F1" AbstractButton="TeletextBlue" /> + <RemoteTable RawCode="412EC1F350F1" AbstractButton="TeletextBlue" /> + <RemoteTable RawCode="412FADF040F1" AbstractButton="Clear" /> + <RemoteTable RawCode="412FACF050F1" AbstractButton="Clear" /> + <RemoteTable RawCode="412FACF040F1" AbstractButton="Enter" /> + <RemoteTable RawCode="412FADF050F1" AbstractButton="Enter" /> + <RemoteTable RawCode="432688F040F1" AbstractButton="Hash" /> + <RemoteTable RawCode="432689F050F1" AbstractButton="Hash" /> + <RemoteTable RawCode="412F88F040F1" AbstractButton="Star" /> + <RemoteTable RawCode="412F89F050F1" AbstractButton="Star" /> + <RemoteTable RawCode="412E5EF040F1" AbstractButton="DVD" /> + <RemoteTable RawCode="412E5FF050F1" AbstractButton="DVD" /> + <RemoteTable RawCode="412E5DF340F1" AbstractButton="TV" /> + <RemoteTable RawCode="412E5CF350F1" AbstractButton="TV" /> + <RemoteTable RawCode="412E5AF040F1" AbstractButton="Guide" /> + <RemoteTable RawCode="412E5BF050F1" AbstractButton="Guide" /> + <RemoteTable RawCode="3F2C5FF040F1" AbstractButton="LiveTV" /> + <RemoteTable RawCode="3F2C5EF050F1" AbstractButton="LiveTV" /> +</DocumentElement> \ No newline at end of file Added: trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/Windows Messages/Virtual Remote.xml =================================================================== --- trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/Windows Messages/Virtual Remote.xml (rev 0) +++ trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/Windows Messages/Virtual Remote.xml 2008-03-04 12:48:40 UTC (rev 1422) @@ -0,0 +1,56 @@ +<?xml version="1.0" standalone="yes"?> +<DocumentElement> + <RemoteTable RawCode="101" AbstractButton="Power" /> + <RemoteTable RawCode="94" AbstractButton="TeletextBlue" /> + <RemoteTable RawCode="93" AbstractButton="TeletextYellow" /> + <RemoteTable RawCode="92" AbstractButton="TeletextGreen" /> + <RemoteTable RawCode="91" AbstractButton="TeletextRed" /> + <RemoteTable RawCode="90" AbstractButton="Teletext" /> + <RemoteTable RawCode="80" AbstractButton="Radio" /> + <RemoteTable RawCode="78" AbstractButton="Print" /> + <RemoteTable RawCode="74" AbstractButton="Videos" /> + <RemoteTable RawCode="73" AbstractButton="Pictures" /> + <RemoteTable RawCode="72" AbstractButton="RecordedTV" /> + <RemoteTable RawCode="71" AbstractButton="Music" /> + <RemoteTable RawCode="70" AbstractButton="TV" /> + <RemoteTable RawCode="39" AbstractButton="AspectRatio" /> + <RemoteTable RawCode="38" AbstractButton="Guide" /> + <RemoteTable RawCode="37" AbstractButton="LiveTV" /> + <RemoteTable RawCode="36" AbstractButton="DVDMenu" /> + <RemoteTable RawCode="35" AbstractButton="Back" /> + <RemoteTable RawCode="34" AbstractButton="OK" /> + <RemoteTable RawCode="33" AbstractButton="Right" /> + <RemoteTable RawCode="32" AbstractButton="Left" /> + <RemoteTable RawCode="31" AbstractButton="Down" /> + <RemoteTable RawCode="30" AbstractButton="Up" /> + <RemoteTable RawCode="29" AbstractButton="Star" /> + <RemoteTable RawCode="28" AbstractButton="Hash" /> + <RemoteTable RawCode="27" AbstractButton="PreviousChapter" /> + <RemoteTable RawCode="26" AbstractButton="NextChapter" /> + <RemoteTable RawCode="25" AbstractButton="Stop" /> + <RemoteTable RawCode="24" AbstractButton="Pause" /> + <RemoteTable RawCode="23" AbstractButton="Record" /> + <RemoteTable RawCode="22" AbstractButton="Play" /> + <RemoteTable RawCode="21" AbstractButton="Rewind" /> + <RemoteTable RawCode="20" AbstractButton="Forward" /> + <RemoteTable RawCode="19" AbstractButton="ChannelDown" /> + <RemoteTable RawCode="18" AbstractButton="ChannelUp" /> + <RemoteTable RawCode="17" AbstractButton="VolumeDown" /> + <RemoteTable RawCode="16" AbstractButton="VolumeUp" /> + <RemoteTable RawCode="15" AbstractButton="Info" /> + <RemoteTable RawCode="14" AbstractButton="Mute" /> + <RemoteTable RawCode="13" AbstractButton="Start" /> + <RemoteTable RawCode="12" AbstractButton="Power2" /> + <RemoteTable RawCode="11" AbstractButton="Enter" /> + <RemoteTable RawCode="10" AbstractButton="Clear" /> + <RemoteTable RawCode="9" AbstractButton="Number9" /> + <RemoteTable RawCode="8" AbstractButton="Number8" /> + <RemoteTable RawCode="7" AbstractButton="Number7" /> + <RemoteTable RawCode="6" AbstractButton="Number6" /> + <RemoteTable RawCode="5" AbstractButton="Number5" /> + <RemoteTable RawCode="4" AbstractButton="Number4" /> + <RemoteTable RawCode="3" AbstractButton="Number3" /> + <RemoteTable RawCode="2" AbstractButton="Number2" /> + <RemoteTable RawCode="1" AbstractButton="Number1" /> + <RemoteTable RawCode="0" AbstractButton="Number0" /> +</DocumentElement> \ No newline at end of file Added: trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/XBCDRC/Xbox.xml =================================================================== --- trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/XBCDRC/Xbox.xml (rev 0) +++ trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/XBCDRC/Xbox.xml 2008-03-04 12:48:40 UTC (rev 1422) @@ -0,0 +1,30 @@ +<?xml version="1.0" standalone="yes"?> +<DocumentElement> + <RemoteTable RawCode="166" AbstractButton="Up" /> + <RemoteTable RawCode="167" AbstractButton="Down" /> + <RemoteTable RawCode="169" AbstractButton="Left" /> + <RemoteTable RawCode="168" AbstractButton="Right" /> + <RemoteTable RawCode="11" AbstractButton="OK" /> + <RemoteTable RawCode="216" AbstractButton="Back" /> + <RemoteTable RawCode="195" AbstractButton="Info" /> + <RemoteTable RawCode="207" AbstractButton="Number0" /> + <RemoteTable RawCode="206" AbstractButton="Number1" /> + <RemoteTable RawCode="205" AbstractButton="Number2" /> + <RemoteTable RawCode="204" AbstractButton="Number3" /> + <RemoteTable RawCode="203" AbstractButton="Number4" /> + <RemoteTable RawCode="202" AbstractButton="Number5" /> + <RemoteTable RawCode="201" AbstractButton="Number6" /> + <RemoteTable RawCode="200" AbstractButton="Number7" /> + <RemoteTable RawCode="199" AbstractButton="Number8" /> + <RemoteTable RawCode="198" AbstractButton="Number9" /> + <RemoteTable RawCode="234" AbstractButton="Play" /> + <RemoteTable RawCode="230" AbstractButton="Pause" /> + <RemoteTable RawCode="224" AbstractButton="Stop" /> + <RemoteTable RawCode="227" AbstractButton="FastForward" /> + <RemoteTable RawCode="226" AbstractButton="Rewind" /> + <RemoteTable RawCode="223" AbstractButton="NextChapter" /> + <RemoteTable RawCode="221" AbstractButton="PreviousChapter" /> + <RemoteTable RawCode="229" AbstractButton="AspectRatio" /> + <RemoteTable RawCode="247" AbstractButton="Menu" /> + <RemoteTable RawCode="213" AbstractButton="Fullscreen" /> +</DocumentElement> \ No newline at end of file Modified: trunk/plugins/IR Server Suite/Input Service/Input Service/Input Service.csproj =================================================================== --- trunk/plugins/IR Server Suite/Input Service/Input Service/Input Service.csproj 2008-03-04 12:13:46 UTC (rev 1421) +++ trunk/plugins/IR Server Suite/Input Service/Input Service/Input Service.csproj 2008-03-04 12:48:40 UTC (rev 1422) @@ -68,6 +68,11 @@ <Reference Include="System.Xml" /> </ItemGroup> <ItemGroup> + <Compile Include="RemoteTable.Designer.cs"> + <AutoGen>True</AutoGen> + <DesignTime>True</DesignTime> + <DependentUpon>RemoteTable.xsd</DependentUpon> + </Compile> <Compile Include="InputService.cs"> <SubType>Component</SubType> </Compile> @@ -100,10 +105,31 @@ </Content> </ItemGroup> <ItemGroup> + <Content Include="Abstract Remote Maps\Direct Input\Direct Input.xml" /> + <Content Include="Abstract Remote Maps\FusionREMOTE\FusionHDTV.xml" /> + <Content Include="Abstract Remote Maps\FusionREMOTE\FusionREMOTE.xml" /> + <Content Include="Abstract Remote Maps\IgorPlug\Microsoft MCE.xml" /> + <Content Include="Abstract Remote Maps\Microsoft MCE\Microsoft MCE.xml" /> + <Content Include="Abstract Remote Maps\USB-UIRT\Microsoft MCE.xml" /> + <Content Include="Abstract Remote Maps\Windows Messages\Virtual Remote.xml" /> + <Content Include="Abstract Remote Maps\XBCDRC\Xbox.xml" /> <Content Include="Uninstall.cmd"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> </ItemGroup> + <ItemGroup> + <None Include="RemoteTable.xsc"> + <DependentUpon>RemoteTable.xsd</DependentUpon> + </None> + <None Include="RemoteTable.xsd"> + <Generator>MSDataSetGenerator</Generator> + <LastGenOutput>RemoteTable.Designer.cs</LastGenOutput> + <SubType>Designer</SubType> + </None> + <None Include="RemoteTable.xss"> + <DependentUpon>RemoteTable.xsd</DependentUpon> + </None> + </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. 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-04 12:13:46 UTC (rev 1421) +++ trunk/plugins/IR Server Suite/Input Service/Input Service/InputService.cs 2008-03-04 12:48:40 UTC (rev 1422) @@ -57,29 +57,36 @@ #region Constants - static readonly string ConfigurationFile = Path.Combine(Common.FolderAppData, "Input Service\\Input Service.xml"); + static readonly string ConfigurationFile = Path.Combine(Common.FolderAppData, "Input Service\\Input Service.xml"); + static readonly string AbstractRemoteMapFolder = Path.Combine(Common.FolderAppData, "Input Service\\Abstract Remote Maps"); + + static readonly string AbstractRemoteSchemaFile = Path.Combine(Common.FolderAppData, "Input Service\\Abstract Remote Maps\\RemoteTable.xsd"); + #endregion Constants #region Variables - List<ClientManager> _registeredClients; - List<ClientManager> _registeredRepeaters; - - Server _server; - Client _client; - + bool _abstractRemoteMode; InputServiceMode _mode; string _hostComputer; - bool _registered; // Used for relay and repeater modes. - string[] _pluginNameReceive; List<PluginBase> _pluginReceive; string _pluginNameTransmit; PluginBase _pluginTransmit; + Server _server; + Client _client; + + List<ClientManager> _registeredClients; + List<ClientManager> _registeredRepeaters; + + bool _registered; // Used for relay and repeater modes. + + DataSet _abstractRemoteButtons; + #endregion Variables #region Constructor @@ -153,11 +160,11 @@ LoadSettings(); + #region Load plugin(s) + _pluginReceive = null; _pluginTransmit = null; - // Load Plugins ... - if (_pluginNameReceive == null && String.IsNullOrEmpty(_pluginNameTransmit)) { IrssLog.Warn("No transmit or receive plugins loaded"); @@ -218,8 +225,11 @@ } } } + + #endregion Load plugin(s) - // Mode select ... + #region Mode select + try { switch (_mode) @@ -256,8 +266,10 @@ IrssLog.Error(ex); } - // Start plugin(s) ... + #endregion Mode select + #region Start plugin(s) + bool startedTransmit = false; if (_pluginReceive != null) @@ -326,6 +338,23 @@ } } + #endregion Start plugin(s) + + #region Setup Abstract Remote Model processing + + if (_abstractRemoteMode) + { + _abstractRemoteButtons = new DataSet("AbstractRemoteButtons"); + _abstractRemoteButtons.CaseSensitive = true; + + List<string> receivers = new List<string>(_pluginReceive.Count); + foreach (PluginBase plugin in _pluginReceive) + if (plugin is IRemoteReceiver) + LoadAbstractDeviceFiles(plugin.Name); + } + + #endregion Setup Abstract Remote Model processing + IrssLog.Info("Input Service started"); } @@ -735,9 +764,41 @@ { IrssLog.Debug("{0} generated a remote event: {1}", deviceName, keyCode); - byte[] deviceNameBytes = Encoding.ASCII.GetBytes(deviceName); - byte[] keyCodeBytes = Encoding.ASCII.GetBytes(keyCode); + string messageDeviceName = deviceName; + string messageKeyCode = keyCode; + switch (_mode) + { + case InputServiceMode.ServerMode: + if (_abstractRemoteMode) + { + string abstractButton = LookupAbstractButton(deviceName, keyCode); + if (String.IsNullOrEmpty(abstractButton)) + { + messageDeviceName = "Abstract"; + messageKeyCode = abstractButton; + + IrssLog.Info("Abstract Remote Button mapped: {0}", abstractButton); + } + else + { + IrssLog.Info("Abstract Remote Button not found: {0} ({1})", deviceName, keyCode); + } + } + break; + + case InputServiceMode.RelayMode: + // Don't do anything in relay mode, just pass it on. + break; + + case InputServiceMode.RepeaterMode: + IrssLog.Debug("Remote event ignored, Input Service is in Repeater Mode."); + return; + } + + byte[] deviceNameBytes = Encoding.ASCII.GetBytes(messageDeviceName); + byte[] keyCodeBytes = Encoding.ASCII.GetBytes(messageKeyCode); + byte[] bytes = new byte[8 + deviceNameBytes.Length + keyCodeBytes.Length]; BitConverter.GetBytes(deviceNameBytes.Length).CopyTo(bytes, 0); @@ -760,12 +821,6 @@ _client.Send(message); break; } - - case InputServiceMode.RepeaterMode: - { - IrssLog.Debug("Remote event ignored, Input Service is in Repeater Mode."); - break; - } } } void KeyboardHandlerCallback(string deviceName, int vKey, bool keyUp) @@ -1085,7 +1140,55 @@ } else { - IrssMessage forward = new IrssMessage(MessageType.RemoteEvent, MessageFlags.Notify, combo.Message.GetDataAsBytes()); + byte[] data = combo.Message.GetDataAsBytes(); + + if (_abstractRemoteMode) + { + // Decode message ... + int deviceNameSize = BitConverter.ToInt32(data, 0); + string deviceName = Encoding.ASCII.GetString(data, 4, deviceNameSize); + int keyCodeSize = BitConverter.ToInt32(data, 4 + deviceNameSize); + string keyCode = Encoding.ASCII.GetString(data, 8 + deviceNameSize, keyCodeSize); + + // Check that the device maps are loaded for the forwarded device + bool foundDevice = false; + foreach (PluginBase plugin in _pluginReceive) + { + if (plugin is IRemoteReceiver && plugin.Name.Equals(deviceName, StringComparison.OrdinalIgnoreCase)) + { + foundDevice = true; + break; + } + } + + // If the remote maps are not already loaded for this device then attempt to load them + if (!foundDevice) + LoadAbstractDeviceFiles(deviceName); + + // Find abstract button mapping + string abstractButton = LookupAbstractButton(deviceName, keyCode); + if (String.IsNullOrEmpty(abstractButton)) + { + IrssLog.Info("Abstract Remote Button mapped from forwarded remote event: {0}", abstractButton); + + // Encode new message ... + byte[] deviceNameBytes = Encoding.ASCII.GetBytes("Abstract"); + byte[] keyCodeBytes = Encoding.ASCII.GetBytes(abstractButton); + + data = new byte[8 + deviceNameBytes.Length + keyCodeBytes.Length]; + + BitConverter.GetBytes(deviceNameBytes.Length).CopyTo(data, 0); + deviceNameBytes.CopyTo(data, 4); + BitConverter.GetBytes(keyCodeBytes.Length).CopyTo(data, 4 + deviceNameBytes.Length); + keyCodeBytes.CopyTo(data, 8 + deviceNameBytes.Length); + } + else + { + IrssLog.Info("Abstract Remote Button not found for forwarded remote event: {0} ({1})", deviceName, keyCode); + } + } + + IrssMessage forward = new IrssMessage(MessageType.RemoteEvent, MessageFlags.Notify, data); SendToAllExcept(combo.Manager, forward); } break; @@ -1470,6 +1573,7 @@ void LoadSettings() { + _abstractRemoteMode = false; _mode = InputServiceMode.ServerMode; _hostComputer = String.Empty; _pluginNameReceive = null; @@ -1503,6 +1607,9 @@ return; } + try { _abstractRemoteMode = bool.Parse(doc.DocumentElement.Attributes["AbstractRemoteMode"].Value); } + catch (Exception ex) { IrssLog.Warn(ex.ToString()); } + try { _mode = (InputServiceMode)Enum.Parse(typeof(InputServiceMode), doc.DocumentElement.Attributes["Mode"].Value, true); } catch (Exception ex) { IrssLog.Warn(ex.ToString()); } @@ -1535,6 +1642,7 @@ writer.WriteStartDocument(true); writer.WriteStartElement("settings"); // <settings> + writer.WriteAttributeString("AbstractRemoteMode", _abstractRemoteMode.ToString()); writer.WriteAttributeString("Mode", Enum.GetName(typeof(InputServiceMode), _mode)); writer.WriteAttributeString("HostComputer", _hostComputer); writer.WriteAttributeString("PluginTransmit", _pluginNameTransmit); @@ -1589,6 +1697,71 @@ } } + string LookupAbstractButton(string deviceName, string keyCode) + { + if (_abstractRemoteButtons == null || _abstractRemoteButtons.Tables.Count == 0) + return null; + + try + { + foreach (DataTable table in _abstractRemoteButtons.Tables) + { + string device = table.ExtendedProperties["Device"] as string; + + if (device.Equals(deviceName, StringComparison.OrdinalIgnoreCase)) + { + string expression = String.Format("RawCode = '{0}'", keyCode); + + DataRow[] rows = table.Select(expression); + if (rows.Length == 1) + { + string button = rows[0]["AbstractButton"].ToString() as string; + if (!String.IsNullOrEmpty(button)) + { +#if TRACE + Trace.WriteLine(button + ", remote: " + table.ExtendedProperties["Remote"] as string + ", device: " + deviceName); +#endif + return button; + } + } + } + } + } + catch (Exception ex) + { + IrssLog.Error(ex); + } + + return null; + //return String.Format("{0} ({1})", deviceName, keyCode); + } + + void LoadAbstractDeviceFiles(string device) + { + string path = Path.Combine(AbstractRemoteMapFolder, device); + string[] files = Directory.GetFiles(path, "*.xml", SearchOption.TopDirectoryOnly); + foreach (string file in files) + { + string remote = Path.GetFileNameWithoutExtension(file); + string tableName = String.Format("{0}:{1}", device, remote); + if (_abstractRemoteButtons.Tables.Contains(tableName)) + { + IrssLog.Warn("Abstract Remote Table already loaded ({0})", tableName); + continue; + } + + DataTable table = _abstractRemoteButtons.Tables.Add("RemoteTable"); + table.ReadXmlSchema(AbstractRemoteSchemaFile); + table.ReadXml(file); + + table.ExtendedProperties.Add("Device", device); + table.ExtendedProperties.Add("Remote", remote); + + table.TableName = tableName; + } + } + + #endregion Implementation } Added: trunk/plugins/IR Server Suite/Input Service/Input Service/RemoteTable.Designer.cs =================================================================== --- trunk/plugins/IR Server Suite/Input Service/Input Service/RemoteTable.Designer.cs (rev 0) +++ trunk/plugins/IR Server Suite/Input Service/Input Service/RemoteTable.Designer.cs 2008-03-04 12:48:40 UTC (rev 1422) @@ -0,0 +1,528 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// This code was generated by a tool. +// Runtime Version:2.0.50727.832 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// </auto-generated> +//------------------------------------------------------------------------------ + +#pragma warning disable 1591 + +namespace InputService { + using System; + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [Serializable()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.ComponentModel.ToolboxItem(true)] + [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] + [System.Xml.Serialization.XmlRootAttribute("AbstractRemoteButtons")] + [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class AbstractRemoteButtons : System.Data.DataSet { + + private RemoteTableDataTable tableRemoteTable; + + private System.Data.SchemaSerializationMode _schemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AbstractRemoteButtons() { + this.BeginInit(); + this.InitClass(); + System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + base.Relations.CollectionChanged += schemaChangedHandler; + this.EndInit(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected AbstractRemoteButtons(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context, false) { + if ((this.IsBinarySerialized(info, context) == true)) { + this.InitVars(false); + System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + this.Tables.CollectionChanged += schemaChangedHandler1; + this.Relations.CollectionChanged += schemaChangedHandler1; + return; + } + string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); + if ((this.DetermineSchemaSerializationMode(info, context) == System.Data.SchemaSerializationMode.IncludeSchema)) { + System.Data.DataSet ds = new System.Data.DataSet(); + ds.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema))); + if ((ds.Tables["RemoteTable"] != null)) { + base.Tables.Add(new RemoteTableDataTable(ds.Tables["RemoteTable"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema))); + } + this.GetSerializationData(info, context); + System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + this.Relations.CollectionChanged += schemaChangedHandler; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.Browsable(false)] + [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)] + public RemoteTableDataTable RemoteTable { + get { + return this.tableRemoteTable; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.BrowsableAttribute(true)] + [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Visible)] + public override System.Data.SchemaSerializationMode SchemaSerializationMode { + get { + return this._schemaSerializationMode; + } + set { + this._schemaSerializationMode = value; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new System.Data.DataTableCollection Tables { + get { + return base.Tables; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new System.Data.DataRelationCollection Relations { + get { + return base.Relations; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void InitializeDerivedDataSet() { + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override System.Data.DataSet Clone() { + AbstractRemoteButtons cln = ((AbstractRemoteButtons)(base.Clone())); + cln.InitVars(); + cln.SchemaSerializationMode = this.SchemaSerializationMode; + return cln; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override bool ShouldSerializeTables() { + return false; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override bool ShouldSerializeRelations() { + return false; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void ReadXmlSerializable(System.Xml.XmlReader reader) { + if ((this.DetermineSchemaSerializationMode(reader) == System.Data.SchemaSerializationMode.IncludeSchema)) { + this.Reset(); + System.Data.DataSet ds = new System.Data.DataSet(); + ds.ReadXml(reader); + if ((ds.Tables["RemoteTable"] != null)) { + base.Tables.Add(new RemoteTableDataTable(ds.Tables["RemoteTable"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXml(reader); + this.InitVars(); + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() { + System.IO.MemoryStream stream = new System.IO.MemoryStream(); + this.WriteXmlSchema(new System.Xml.XmlTextWriter(stream, null)); + stream.Position = 0; + return System.Xml.Schema.XmlSchema.Read(new System.Xml.XmlTextReader(stream), null); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.InitVars(true); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars(bool initTable) { + this.tableRemoteTable = ((RemoteTableDataTable)(base.Tables["RemoteTable"])); + if ((initTable == true)) { + if ((this.tableRemoteTable != null)) { + this.tableRemoteTable.InitVars(); + } + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.DataSetName = "AbstractRemoteButtons"; + this.Prefix = ""; + this.Locale = new System.Globalization.CultureInfo("en"); + this.EnforceConstraints = true; + this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + this.tableRemoteTable = new RemoteTableDataTable(); + base.Tables.Add(this.tableRemoteTable); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + private bool ShouldSerializeRemoteTable() { + return false; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) { + if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) { + this.InitVars(); + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public static System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(System.Xml.Schema.XmlSchemaSet xs) { + AbstractRemoteButtons ds = new AbstractRemoteButtons(); + System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType(); + System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence(); + xs.Add(ds.GetSchemaSerializable()); + System.Xml.Schema.XmlSchemaAny any = new System.Xml.Schema.XmlSchemaAny(); + any.Namespace = ds.Namespace; + sequence.Items.Add(any); + type.Particle = sequence; + return type; + } + + public delegate void RemoteTableRowChangeEventHandler(object sender, RemoteTableRowChangeEvent e); + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [System.Serializable()] + [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class RemoteTableDataTable : System.Data.DataTable, System.Collections.IEnumerable { + + private System.Data.DataColumn columnRawCode; + + private System.Data.DataColumn columnAbstractButton; + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public RemoteTableDataTable() { + this.TableName = "RemoteTable"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal RemoteTableDataTable(System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected RemoteTableDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn RawCodeColumn { + get { + return this.columnRawCode; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn AbstractButtonColumn { + get { + return this.columnAbstractButton; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public RemoteTableRow this[int index] { + get { + return ((RemoteTableRow)(this.Rows[index])); + } + } + + public event RemoteTableRowChangeEventHandler RemoteTableRowChanging; + + public event RemoteTableRowChangeEventHandler RemoteTableRowChanged; + + public event RemoteTableRowChangeEventHandler RemoteTableRowDeleting; + + public event RemoteTableRowChangeEventHandler RemoteTableRowDeleted; + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public void AddRemoteTableRow(RemoteTableRow row) { + this.Rows.Add(row); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public RemoteTableRow AddRemoteTableRow(string RawCode, string AbstractButton) { + RemoteTableRow rowRemoteTableRow = ((RemoteTableRow)(this.NewRow())); + rowRemoteTableRow.ItemArray = new object[] { + RawCode, + AbstractButton}; + this.Rows.Add(rowRemoteTableRow); + return rowRemoteTableRow; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public virtual System.Collections.IEnumerator GetEnumerator() { + return this.Rows.GetEnumerator(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override System.Data.DataTable Clone() { + RemoteTableDataTable cln = ((RemoteTableDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override System.Data.DataTable CreateInstance() { + return new RemoteTableDataTable(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.columnRawCode = base.Columns["RawCode"]; + this.columnAbstractButton = base.Columns["AbstractButton"]; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.columnRawCode = new System.Data.DataColumn("RawCode", typeof(string), null, System.Data.MappingType.Attribute); + base.Columns.Add(this.columnRawCode); + this.columnAbstractButton = new System.Data.DataColumn("AbstractButton", typeof(string), null, System.Data.MappingType.Attribute); + base.Columns.Add(this.columnAbstractButton); + this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] { + this.columnRawCode}, false)); + this.columnRawCode.Uni... [truncated message content] |
From: <an...@us...> - 2008-04-24 17:00:57
|
Revision: 1707 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1707&view=rev Author: and-81 Date: 2008-04-24 10:00:20 -0700 (Thu, 24 Apr 2008) Log Message: ----------- Modified Paths: -------------- trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/iMon/Microsoft MCE.xml trunk/plugins/IR Server Suite/Input Service/Input Service/Input Service.csproj Modified: trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/iMon/Microsoft MCE.xml =================================================================== --- trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/iMon/Microsoft MCE.xml 2008-04-24 16:51:09 UTC (rev 1706) +++ trunk/plugins/IR Server Suite/Input Service/Input Service/Abstract Remote Maps/iMon/Microsoft MCE.xml 2008-04-24 17:00:20 UTC (rev 1707) @@ -53,6 +53,5 @@ <RemoteTable RawCode="2078" AbstractButton="Print" /> <RemoteTable RawCode="2072" AbstractButton="RecordedTV" /> <RemoteTable RawCode="2039" AbstractButton="AspectRatio" /> - <RemoteTable RawCode="2078" AbstractButton="Print" /> <RemoteTable RawCode="2105" AbstractButton="Messenger" /> </DocumentElement> \ No newline at end of file Modified: trunk/plugins/IR Server Suite/Input Service/Input Service/Input Service.csproj =================================================================== --- trunk/plugins/IR Server Suite/Input Service/Input Service/Input Service.csproj 2008-04-24 16:51:09 UTC (rev 1706) +++ trunk/plugins/IR Server Suite/Input Service/Input Service/Input Service.csproj 2008-04-24 17:00:20 UTC (rev 1707) @@ -108,10 +108,10 @@ </Content> </ItemGroup> <ItemGroup> - <Content Include="Abstract Remote Maps\Imon\Imon Front Panel.xml" /> - <Content Include="Abstract Remote Maps\Imon\Imon PAD.xml" /> - <Content Include="Abstract Remote Maps\Imon\Imon Volume Knob.xml" /> - <Content Include="Abstract Remote Maps\Imon\Microsoft MCE.xml" /> + <Content Include="Abstract Remote Maps\iMon\Imon Front Panel.xml" /> + <Content Include="Abstract Remote Maps\iMon\Imon PAD.xml" /> + <Content Include="Abstract Remote Maps\iMon\Imon Volume Knob.xml" /> + <Content Include="Abstract Remote Maps\iMon\Microsoft MCE.xml" /> <Content Include="Input Service.exe.manifest"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |