public Joystick(IntPtr windowHandle, int rangeFrom, int rangeTo) { range = new InputRange(rangeFrom, rangeTo); type = JoystickType.MainController; createJoystick(); configureJoystick(windowHandle); }
public Joystick(IntPtr windowHandle) { range = new InputRange(1, 255); type = JoystickType.MainController; createJoystick(); configureJoystick(windowHandle); }
public Joystick(IntPtr windowHandle, int rangeFrom, int rangeTo, JoystickType type) { range = new InputRange(rangeFrom, rangeTo); this.type = type; createJoystick(); configureJoystick(windowHandle); }
public Joystick(IntPtr windowHandle, int index, JoystickType type) { range = new InputRange(0, 250); this.type = type; createJoystick(index); configureJoystick(windowHandle); }
protected unsafe void Set(IntPtr guid, InputRange value) { var prop = new PropertyRange(); InitHeader <PropertyRange>(ref prop.Header); value.CopyTo(ref prop); Device.SetProperty(guid, new IntPtr(&prop)); }