public virtual bool updateJoystick(JoystickReport report) { if (connected) { return(vmulti_update_joystick(vmulti, report.getButtonsRaw(), report.getPOVRaw(), report.getJoystickXRaw(), report.getJoystickYRaw(), 0, 128, 0)); } else { return(false); } }
public virtual bool updateJoystick(JoystickReport report) { if (connected) { return vmulti_update_joystick(vmulti, report.getButtonsRaw(), report.getPOVRaw(), report.getJoystickXRaw(), report.getJoystickYRaw(), 0, 128, 0); } else { return false; } }
private void joystickTest(VMulti vmulti) { double i = 0; bool running = true; while (running) { JoystickButtonState joyButtonState = new JoystickButtonState(); joyButtonState.A = false; joyButtonState.X = false; joyButtonState.Left = false; double x = Math.Sin(i); double y = Math.Cos(i); Console.WriteLine("x: " + x + " y: " + y); JoystickReport joystickReport = new JoystickReport(joyButtonState, x, y); Console.WriteLine("Update Joystick: " + vmulti.updateJoystick(joystickReport)); i += 0.1; System.Threading.Thread.Sleep(100); } }