public string selectWithWheel(int nbstep, IList <string> list) { var nbvalue = list.Count; var data = nbvalue * nbstep * wheelMax; wheelvalue += wheel; if (wheelvalue < 0) { wheelvalue += data; } var index = (wheelvalue % data) / (nbstep * wheelMax); if (plugin.IsPressed((int)Mouse.Middle)) { return(list[index]); } return(""); }
public bool getPressed <T>(T code, bool hook = false) => plugin.IsPressed(Convert.ToInt32(code), hook);