XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

Checking if Xbox360 controller is connected to a PC

Last post 1/28/2009 6:36 PM by AndrewFM. 2 replies.
  • 1/28/2009 4:34 PM

    Checking if Xbox360 controller is connected to a PC

    Is there any way to do this? I've been using the "IsConnected" check for GamePadState, but it always returns false on a PC, regardless of whether the controller is connected/detected or not.
  • 1/28/2009 6:15 PM In reply to

    Re: Checking if Xbox360 controller is connected to a PC

    Does the gamepad otherwise work? ie. can you read input values from it?

    Do other games and samples work with this gamepad?

    What does the input reporter utility (on this site) report?
    XNA Framework Developer - blog - homepage
  • 1/28/2009 6:36 PM In reply to

    Re: Checking if Xbox360 controller is connected to a PC

    Yeah, everything you listed works fine.

    Anyways, I just found the problem... it was a really stupid mistake on my part. I forgot to do "GamePad.GetState" before checking whether it was connected or not...
Page 1 of 1 (3 items) Previous Next