UDN
Search public documentation:
LogitechLEDSDK
中国翻译
한국어
Interested in the Unreal Engine?
Visit the Unreal Technology site.
Looking for jobs and company info?
Check out the Epic games site.
Questions about support via UDN?
Contact the UDN Staff
한국어
Interested in the Unreal Engine?
Visit the Unreal Technology site.
Looking for jobs and company info?
Check out the Epic games site.
Questions about support via UDN?
Contact the UDN Staff
UE3 Home > Input / Output > Logitech Gaming LED SDK for Unreal
Logitech Gaming LED SDK for Unreal
Overview
The Logitech Gaming LED SDK enables applications such as games to control the backlight LEDs on supported Logitech gaming mice and keyboards. It can be easily integrated in a UDK game by using DLLBind. Find the SDK attached as a file at the bottom of this page. Please refer to the Logitech SDK’s Doc\LogitechGamingLEDSDK.pdf for details on the SDK’s functionality. For questions/comments, email cjuncker@logitech.com, or lbyrne@logitech.com.Making the LED SDK work in your UDK game
The following steps show how to make the Logitech SDK work with “UDKGame” that comes as part of the UDK download. Please adapt the steps to your game for things to work.Steps
- Download UDK (http://www.unrealengine.com/udk/).
- Create the following 2 Unreal Script files, and copy them to UDK’s Development\Src\MyMod\Classes folder:
class TestDLLGameInfo extends GameInfo; defaultproperties { PlayerControllerClass=class'TestDLLPlayerController' }TestDLLPlayerController.uc
class TestDLLPlayerController extends PlayerController DLLBind(LogitechLed); dllimport final function bool LogiLedInit(); dllimport final function bool LogiLedSaveCurrentLighting(int deviceType); dllimport final function bool LogiLedSetLighting(int deviceType, int redPercentage, int greenPercentage, int bluePercentage); dllimport final function bool LogiLedRestoreLighting(int deviceType); dllimport final function LogiLedShutdown(); exec function LogiInit() { local bool ret; ret = LogiLedInit(); say("LogiLedInit return is: " $ret); } exec function LogiSaveCurrentLighting(int deviceType) { local bool ret; ret = LogiLedSaveCurrentLighting(deviceType); say("LogiLedSaveCurrentLighting return is: " $ret); } exec function LogiSetLighting(int deviceType, int redPercentage, int greenPercentage, int bluePercentage) { local bool ret; ret = LogiLedSetLighting(deviceType, redPercentage, greenPercentage, bluePercentage); say("LogiLedSetLighting return is: " $ret); } exec function LogiRestoreLighting(int deviceType) { local bool ret; ret = LogiLedRestoreLighting(deviceType); say("LogiLedRestoreLighting return is: " $ret); } exec function LogiShutdown() { LogiLedShutdown(); say("LogiLedShutdown done"); }
- Copy Logitech SDK’s Lib\x86\ LogitechLed.dll to UDK’s Binaries\Win32\UserCode
- Copy Logitech SDK’s Lib\x64\ LogitechLed.dll to UDK’s Binaries\Win64\UserCode
- Open UDK’s UDKGame\Config\ DefaultEngineUDK.ini file for editing
- Search for: ModEditPackages=MyMod
- Remove the ; at the beginning of the line
- Launch UDK’s Binaries/UnrealFrontend.exe
- Do: Script->Full recompile
Calling Logitech SDK’s functions from within the game
Launch game the following way:- Binaries\Win32\UDK.exe dm-deck?game=MyMod.TestDLLGameInfo
LogiInit
, and then hit -
LogiSetLighting
-
LogiSaveCurrentLighting
-
LogiRestoreLighting
-
LogiShutdown
Downloads
- LogitechLEDSDK_1.01.005.1.zip: LogitechLEDSDK_1.02.002.1.zip