United States (English)
Canada (English)
Canada (Français)
Deutschland (Deutsch)
España (Español)
France (Français)
Italia (Italia)
United Kingdom (English)
United States (English)
日本 (日本語)
Forums
Hi,
Visitor
Sign In
Home
Quick Start Guide
News
Membership
Games
Games Catalog
Submit Game
Review Game
Playtest Game
Creators
My Profile
My Business
Community
Forums
Community Spotlight
Community Resources
Education
Getting Started
Education Catalog
Starter Kits
Utilities
Academia
Developer Talk Series
Resources
FAQ
Partners
Download
Feedback
Press Site
Meet the Team
community forums
XNA Community Forums
»
General
»
Game Algorithms
»
Checking if Xbox360 controller is connected to a PC
More Search Options
|
My Discussions
|
Active Topics
|
Not Read
Page 1 of 1 (3 items)
Sort Posts:
Oldest to newest
Newest to oldest
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
AndrewFM
(0)
Posts
21
Checking if Xbox360 controller is connected to a PC
Reply
Quote
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
Shawn Hargreaves
(13069)
Team XNA
Posts
8,589
Re: Checking if Xbox360 controller is connected to a PC
Reply
Quote
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
AndrewFM
(0)
Posts
21
Re: Checking if Xbox360 controller is connected to a PC
Reply
Quote
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
© 2010 Microsoft Corporation. All rights reserved.
Terms of Use
Privacy Statement
Code of Conduct
Feedback