Beispiel #1
0
        public Joystick(int joyID)
        {
            fStickID = joyID;
            fJoyCaps = new JoystickCapabilities();

            winmm.joyGetDevCapsW(ID, ref fJoyCaps, Marshal.SizeOf(fJoyCaps));

            Offset = 0;
            Threshold = 0.01f;
        }
Beispiel #2
0
 public static extern int joyGetDevCapsW( int uJoyID, ref JoystickCapabilities pjc, int cbjc);