public static void Main() { _joy = new JoystickClick(Hardware.SC20260_1) { DeadZone = new SByte[] { 100, -100, 100, -100 } }; Debug.WriteLine($"DZ = {_joy.DeadZone[0]}, {_joy.DeadZone[1]}, {_joy.DeadZone[2]}, {_joy.DeadZone[3]}"); _joy.TimeBase = 7; _joy.InterruptLine.ValueChanged += InterruptLine_ValueChanged; _joy.Button.ValueChanged += Button_ValueChanged; Thread.Sleep(Timeout.Infinite); }
public static void Main() { _joy = new JoystickClick(Hardware.SocketFour) { DeadZone = new SByte[] { 100, -100, 100, -100 } }; Debug.Print("DZ = " + _joy.DeadZone[0] + "," + _joy.DeadZone[1] + "," + _joy.DeadZone[2] + "," + _joy.DeadZone[3]); _joy.TimeBase = 7; _joy.InterruptLine.OnInterrupt += InterruptLineOnInterruptLine; _joy.Button.OnInterrupt += Button_OnInterrupt; Thread.Sleep(Timeout.Infinite); }