public Joystick(int joyID) { fStickID = joyID; fJoyCaps = new JoystickCapabilities(); winmm.joyGetDevCapsW(ID, ref fJoyCaps, Marshal.SizeOf(fJoyCaps)); Offset = 0; Threshold = 0.01f; }
public static extern int joyGetDevCapsW( int uJoyID, ref JoystickCapabilities pjc, int cbjc);