Retrieves the physical location of the button at the specified index.
public:
void GetButtonPosition(
unsigned char buttonIndex,
out float32 xPercent,
out float32 yPercent
)
buttonIndex
Type: unsigned char
Zero-based index of the button to get the physical location for.
xPercent
Type: float32
Returns the physical location of the button in relation to the DeviceWidth, in the range [0.0, 1.0]. The value 0.0 indicates that the center of the button is located at the left edge of the device; the value 1.0 indicates that the center of the button is located at the right edge of the device.
yPercent
Type: float32
Returns the physical location of the button in relation to the DeviceDepth, in the range [0.0, 1.0]. The value 0.0 indicates that the center of the button is located at the top edge of the device; the value 1.0 indicates that the center of the button is located at the bottom edge of the device.
Namespace: Microsoft.Xbox.Input
Metadata: microsoft.xbox.input.arcadestick.winmd