CosminLazar / roccat-talk-csharp

Allows LED illumination configuration on Roccat TalkFX enabled devices
https://www.nuget.org/packages/Roccat-Talk/
MIT License
7 stars 2 forks source link

Methods controlling LED's (all) not working with Ryos #2

Open LordJABA opened 5 years ago

LordJABA commented 5 years ago

I was experimenting with your code. But could not get it to work. I suspect something changed on Roccat side in the last few years. Following your test program... I can connection.Initialize() and then after connection.EnterSdkMode() keyboard led's turn off. but after that using for ex. connection.BlinkAllKeys(1, 10) has no effect. Only thing that works is connection.ExitSdkMode() which returns led's to normal.

The test console program behaves the same.

Any chance for an update? I had a plan to use Memory.dll to make some use of my led's displaying health in games etc.

My Code fragment:

    private void Form1_Load(object sender, EventArgs e)
    {
        if (con.Initialize())
        {
            currentAmmo.Text = "RGB CONNECTED";
            if (con.EnterSdkMode())
            {
                currentAmmo.Text = "RGB CONTROL";
                con.BlinkAllKeys(1, 10);
            }
        }
        else
            currentAmmo.Text = "RGB FAIL";
    }

    private void Form1_FormClosing(Object sender, FormClosingEventArgs e)
    {
        curentAmmo.Text = "Closing";
        con.ExitSdkMode();
        sdkmode = false;
    }

'

CosminLazar commented 5 years ago

It's been a while since I tested this and maybe they have updated their internal protocol. I am a bit busy at the moment but will keep this issue open and look into it eventually. You are welcome to submit a pull request If you cannot wait and choose to investigate and fix this yourself.

LordJABA commented 5 years ago

I'm a python programmer by trade so even c# is somewhat of challenge for me, c++ even more. But if I get tired of waiting I will dig out my copy of "symphony in c++" - I was writing in c++ some 10 years ago - and try to update it myself.. Thanks for a response. It itself is more than I expected looking at last update date ;-)