共用方式為


Zune Button Mapping

Describes how various Zune buttons map to the buttons on a standard Xbox 360 gamepad.

Input

For input, the Zune device has two buttons and either a device control pad (version 1.0) or a Zune Pad (version 2.0). These inputs map to controller input, retrieved with the GamePad.GetState method.

Back and Play/Pause Buttons

The Back button maps to GamePadState.Buttons.Back, and the Play/pause button maps to GamePadState.Buttons.B.

Dd282497.Zune_Programming_ButtonsNotA(en-US,XNAGameStudio.30).png

Device Control Pad (version 1.0)

The control pad provides input for presses (or 'clicks') on the pad.

Directional presses on the control pad map to the GamePadState.DPad directions: up, down, left, and right, or to a combination of two of those directions. Pressing straight down in the middle of the control pad maps to GamePadState.Buttons.A.

Dd282497.Zune_Programming_Keel_Dpad(en-US,XNAGameStudio.30).png

Zune Pad

In addition to the behavior described in the previous sections, touch or motion over the Zune Pad is also reported as left thumbstick position in the GamePadState.ThumbSticks.Left property. Finally, clicking anywhere on the Zune Pad maps to GamePadState.Buttons.LeftShoulder.

Dd282497.Zune_Programming_LThumb(en-US,XNAGameStudio.30).png

See Also

Concepts

Connecting to Your Zune Device with XNA Game Studio

Reference

GamePadState.DPad Property
GamePadState.Buttons Property