예제 #1
0
 protected Joystick() : base(IntPtr.Zero, true)
 {
     Hats    = new JoystickHats(this);
     Axes    = new JoystickAxes(this);
     Balls   = new JoystickBalls(this);
     Buttons = new JoystickButtons(this);
 }
예제 #2
0
 public Joystick(IntPtr h, bool owned) : base(IntPtr.Zero, owned)
 {
     SetHandle(h);
     Hats    = new JoystickHats(this);
     Axes    = new JoystickAxes(this);
     Balls   = new JoystickBalls(this);
     Buttons = new JoystickButtons(this);
 }