KeyCombo Implementation issue

Hi Everyone,

I’m working on implementing the KeyCombo.cs found over on the wiki page here:

I’m having an issue in getting the system to differentiate between some combo’s:

private KeyCombo FourButtonCombo = new KeyCombo(new string[] { "A", "B", "X", "Y" });
private KeyCombo ThreeButtonCombo = new KeyCombo(new string[] { "A", "B", "X"});

Whenever the four button combo returns true, so does the three button combo (since, technically, it’s also a valid combo…). I’m not really sure how to prevent this from happening, Anyone have any ideas?

Thanks in advance!

You could add a delay between the combo completion and the consequence. Meaning, if a b and x are pressed you wait a bit and do something, unless y was pressed in between.

As an alternative, you could try that. But you would encounter the same issue.