Skip to content

DirectInput: GetEffectInfo throws Exception #376

Answered by piotrek1668
piotrek1668 asked this question in Q&A
Discussion options

You must be logged in to vote

So I have found a workaround. Here it is:

var effectGuid = EffectGuid.Sine;
var effectInfo = new EffectInfo();
var effectInfos = this.Joystick.GetEffects();
foreach (var info in effectInfos)
{
    if (info.Guid == effectGuid)
    {
        effectInfo = info;
        break;
    }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by piotrek1668
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant