Giter Club home page Giter Club logo

logitech-led's Introduction

logitech-led

Rust bindings for the Logitech Gaming LED Illumination SDK

Overview

The Logitech Gaming LED SDK enables applications such as games to control the backlight LEDs on supported Logitech gaming mice and keyboards.

Requirements

Supported Devices

Features of lighting-capable Logitech Gaming mice and keyboards

Available colors

Different devices have different capabilities. They range from full single-key RGB support to single color only. Details for supported devices are found further below in “Features of lighting-capable Logitech Gaming mice and keyboards”. The SDK has a single function to set the backlighting color and takes values for R(ed), G(reen), B(lue). The way it deals with single color devices is to take whichever of the R, G, and B values is the highest and apply it. This is important to remember, because if for example rotating through colors, the game should make sure to alternate the maximum numbers as it rotates so that the effect on a single color device would be noticeable too.

Dynamic Loading

This crate will try to locate and load LogitechLed.dll at runtime. We start by looking up the CLSID in the Windows registry, if it’s found we load the library with a call to LoadLibrary() with the full path. If it fails we call LoadLibrary() with just the DLL name. This will search your PATH for the library.

Multiple clients using the SDK at the same time

The SDK allows only one client to control backlighting at any given time. In case two applications try to initialize the SDK, the latest one will take over control.

License

Bindings

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

logitech-led's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lapinolapidus

logitech-led's Issues

Empty options column

Does the config example work?
I have an empty column with options in Logitech Gaming Software for config applet.
Version 8.98.234 x86-64

Missing CLSID for LogitechLed.dll

It doesn’t look like Logitech Gaming Software sets up an CLSID for LogitechLed.dll. We Need to find approach for locating LogitechLed.dll.

Find and Load dll manually with LoadLibrary at Runtime

We currently let rust load DLLs for us, we should probably do it ourselves so we can do a lookup by CLSID in the windows registry at runtime like our build script does. This should fix problems that caused by Logitech not adding their DLLs to PATH.

SDK won't initialize if G-HUB / LGS is not running in the background

Tried to create my own wrapper for the LED SDK, I started messing up with their library I cannot initialize the SDK without either Logitech Gaming Software or Logitech G Hub running in the background, the SDK says it needs to be installed, nothing is mentioned about keep it running.

Am I missing something?
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.