forked from erik-smit/FreePIE
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Logitech G940 LED interface plugin supported
- Loading branch information
Showing
8 changed files
with
137 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using FreePIE.Core.Contracts; | ||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace FreePIE.Core.Plugins | ||
{ | ||
[GlobalEnum] | ||
public enum LogiPanelButton | ||
{ | ||
LOGI_UNDEFINED = -1, LOGI_P1, LOGI_P2, LOGI_P3, LOGI_P4, LOGI_P5, LOGI_P6, LOGI_P7, LOGI_P8 | ||
} | ||
|
||
[GlobalEnum] | ||
public enum LogiColor | ||
{ | ||
LOGI_OFF, LOGI_GREEN, LOGI_AMBER, LOGI_RED | ||
} | ||
|
||
public class Logitech | ||
{ | ||
|
||
[DllImport("G940LedInterface.dll", CallingConvention = CallingConvention.StdCall, EntryPoint = "_ButtonSetColor")] | ||
public extern static ulong ButtonSetColor(IntPtr device, LogiPanelButton button, LogiColor color); | ||
|
||
[DllImport("G940LedInterface.dll", CallingConvention = CallingConvention.StdCall, EntryPoint = "_SetAllButtonsColor")] | ||
public extern static ulong SetAllButtonsColor(IntPtr device, LogiColor color); | ||
|
||
[DllImport("G940LedInterface.dll", CallingConvention = CallingConvention.StdCall, EntryPoint = "_IsButtonColor")] | ||
public extern static bool IsButtonColor(IntPtr device, LogiPanelButton button, LogiColor color); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.