private void VER_InSimVersionInformation(Packets.IS_VER VER)
{
if (VER.Product.Equals("DEMO"))
{
InSim.Close();
MessageBox.Show("This Program only works with S1 or S2");
///LFS_External License Check by Vane/Peter Savage
}
}
InSim.Send_BTN_CreateButton("^7LFS SC ^3v1.0", "text", Flags.ButtonStyles.ISB_DARK|Flags.InSimFlags.ISF_LOCAL, 3, 10, 190, 160, 96, 1, BFN.UCID, 40, false);
InSimSettings Settings = new InSimSettings("127.0.0.1", 29999, 0, Flags.InSimFlags.ISF_MSO_COLS | Flags.InSimFlags.ISF_MCI | Flags.InSimFlags.ISF_LOCAL, '!', 500, "4576537535", "^7LFS CS", 5);
private void button1_Click(object sender, EventArgs e)
{
static public InSim.Send_BTN_CreateButton("Button Text", "Title", Flags.ButtonStyles.ISB_DARK | Flags.ButtonStyles.ISB_CLICK, 5, 30, 100, 10, 96, 1, ???, 40, false);
}
private void timer2_Tick(object sender, EventArgs e)
{
Poll();
byte[] joystickbtn = state.GetButtons();
buttons = new bool[joystickbtn.Length];
int j = 0;
foreach (byte button in joystickbtn)
{
buttons[j] = button >= 128;
j++;
}
if (buttons[16])
{
label1.Text = ("16");
timer2.Enabled = false;
}
if (buttons[17])
{
label1.Text = ("17");
timer2.Enabled = false;
}
if (buttons[18])
{
label1.Text = ("18");
timer2.Enabled = false;
}
if (buttons[19])
{
label1.Text = ("19");
timer2.Enabled = false;
}
}
if (buttons[j])
{
label1.Text = (j);
timer2.Enabled = false;
}