|
From: <an...@us...> - 2008-08-20 07:12:05
|
Revision: 2065
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=2065&view=rev
Author: and-81
Date: 2008-08-20 07:12:01 +0000 (Wed, 20 Aug 2008)
Log Message:
-----------
minor updates (Translator Suspend/Resume commands should be working properly now)
Modified Paths:
--------------
trunk/plugins/IR Server Suite/Applications/Translator/Program.cs
trunk/plugins/IR Server Suite/Input Service/Input Service/InputService.cs
Modified: trunk/plugins/IR Server Suite/Applications/Translator/Program.cs
===================================================================
--- trunk/plugins/IR Server Suite/Applications/Translator/Program.cs 2008-08-19 17:46:55 UTC (rev 2064)
+++ trunk/plugins/IR Server Suite/Applications/Translator/Program.cs 2008-08-20 07:12:01 UTC (rev 2065)
@@ -415,11 +415,11 @@
switch (e.Mode)
{
case PowerModes.Resume:
- MapEvent(MappingEvent.PC_Resume);
+ MapEvent(MappingEvent.PC_Resume, true);
break;
case PowerModes.Suspend:
- MapEvent(MappingEvent.PC_Suspend);
+ MapEvent(MappingEvent.PC_Suspend, false);
break;
}
}
@@ -428,11 +428,11 @@
switch (e.Reason)
{
case SessionEndReasons.Logoff:
- MapEvent(MappingEvent.PC_Logoff);
+ MapEvent(MappingEvent.PC_Logoff, false);
break;
case SessionEndReasons.SystemShutdown:
- MapEvent(MappingEvent.PC_Shutdown);
+ MapEvent(MappingEvent.PC_Shutdown, false);
break;
}
}
@@ -658,7 +658,7 @@
return;
}
- MapEvent(MappingEvent.Translator_Quit);
+ MapEvent(MappingEvent.Translator_Quit, false);
Application.Exit();
}
@@ -692,7 +692,7 @@
if (_firstConnection)
{
_firstConnection = false;
- MapEvent(MappingEvent.Translator_Start);
+ MapEvent(MappingEvent.Translator_Start, true);
}
}
static void Disconnected(object obj)
@@ -978,7 +978,7 @@
Mouse.Button((Mouse.MouseEvents)buttons);
}
- static void MapEvent(MappingEvent theEvent)
+ static void MapEvent(MappingEvent theEvent, bool async)
{
if (_inConfiguration)
return;
@@ -1006,7 +1006,7 @@
try
{
IrssLog.Info("Event mapped: {0}, {1}", eventName, mappedEvent.Command);
- ProcessCommand(mappedEvent.Command, true);
+ ProcessCommand(mappedEvent.Command, async);
}
catch (Exception ex)
{
Modified: trunk/plugins/IR Server Suite/Input Service/Input Service/InputService.cs
===================================================================
--- trunk/plugins/IR Server Suite/Input Service/Input Service/InputService.cs 2008-08-19 17:46:55 UTC (rev 2064)
+++ trunk/plugins/IR Server Suite/Input Service/Input Service/InputService.cs 2008-08-20 07:12:01 UTC (rev 2065)
@@ -483,6 +483,7 @@
#region Suspend
case PowerBroadcastStatus.Suspend:
+ // TODO: if anyone has any trouble with on-suspend commands then try changing this to QuerySuspend.
IrssLog.Info("Entering standby ...");
bool suspendedTransmit = false;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|