United States - English
Argentina (Español)
Australia (English)
Brasil (Português)
Canada (English)
Canada (Français)
中国 (简体中文)
Colombia (Español)
Deutschland (Deutsch)
España (Español)
France (Français)
India (English)
Italia (Italiano)
日本 (日本語)
México (Español)
Perú (Español)
Россия (Pусский)
United Kingdom (English)
United States (English)
More...
Microsoft.com
Product Families
Office
Windows
Windows Server System
Windows Mobile
Developer Tools
Business Solutions
Games & Xbox
MSN
Resources
Microsoft Update
Office Update
Download Center
Help & Support
Security
Volume Licensing
About Microsoft
Company Information
Investor Relations
PressPass for journalists
Popular Places
MSDN (Developers)
TechNet (IT Pros)
Microsoft At Home
Microsoft At Work
Business & Industry
Microsoft partners
Microsoft hardware
Product catalog
Mactopia
Microsoft.com site map
Popular Searches
Templates
ActiveSync
Clip art
Popular Downloads
Windows Defender Beta 2
DirectX End-User Runtime
More popular downloads
Welcome
Sign in
Developer Centers
MSDN Home
XNA Developer Center
Home
Library
Learn
Downloads
Support
Community
Printer Friendly Version
Send
Add Content...
Click to Rate and Give Feedback
Give feedback on this content
MSDN Library
MSDN
Please Wait
MSDN Library
Please Wait
Development Tools and Languages
Please Wait
XNA Game Studio
Please Wait
XNA Game Studio 2.0
Please Wait
XNA Framework Class Library Referen...
Please Wait
Microsoft.Xna.Framework.Input
Please Wait
Collapse All
XNA Game Studio 2.0
Microsoft.Xna.Framework.Input Namespace
Contains classes to receive input from keyboard, mouse, and Xbox 360 Controller devices.
Classes
Name
Description
GamePad
Allows retrieval of user interaction with an Xbox 360 Controller and setting of controller vibration motors.
Keyboard
Allows retrieval of keystrokes from a keyboard input device.
Mouse
Allows retrieval of position and button clicks from a mouse input device.
Structures
Name
Description
GamePadButtons
Identifies whether the buttons on an Xbox 360 Controller are pressed or released.
GamePadCapabilities
Describes the capabilities of an Xbox 360 Controller, including controller type and whether the controller supports voice.
GamePadDPad
Identifies which directions on the directional pad of an Xbox 360 Controller are being pressed.
GamePadState
Represents specific information about the state of an Xbox 360 Controller, including the current state of buttons and sticks.
GamePadThumbSticks
Structure that represents the position of left and right sticks (thumbsticks) on an Xbox 360 Controller.
GamePadTriggers
Structure that defines the position of the left and right triggers on an Xbox 360 Controller.
KeyboardState
Represents a state of keystrokes recorded by a keyboard input device.
MouseState
Represents the state of a mouse input device, including mouse cursor position and buttons pressed.
Enumerations
Name
Description
Buttons
Enumerates input device buttons.
ButtonState
Identifies the state of a mouse button or Xbox 360 Controller button.
GamePadDeadZone
Specifies a type of dead zone processing to apply to Xbox 360 controller analog sticks when calling
GetState
.
GamePadType
Describes the type of a given Xbox 360 controller.
Keys
Identifies a particular key on a keyboard.
KeyState
Identifies the state of a keyboard key.
See Also
Tasks
How To: Detect Whether a Controller Button Is Pressed
How To: Detect Whether a Controller Is Disconnected
How To: Get the Current Mouse Position (Windows)
How To: Detect Whether a Key Is Pressed
Concepts
Input Overview
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
Community Content
Add new content
Annotations
|
Edit
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
Manage Your Profile
|
Legal
|
Contact Us
|
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement