Compartilhar via


KeyEvent.IsGamepadButton(Keycode) Method

Definition

Returns true if the specified keycode is a gamepad button.

[Android.Runtime.Register("isGamepadButton", "(I)Z", "")]
public static bool IsGamepadButton (Android.Views.Keycode keyCode);
[<Android.Runtime.Register("isGamepadButton", "(I)Z", "")>]
static member IsGamepadButton : Android.Views.Keycode -> bool

Parameters

keyCode
Keycode

Returns

True if the keycode is a gamepad button, such as #KEYCODE_BUTTON_A.

Attributes

Remarks

Returns true if the specified keycode is a gamepad button.

Java documentation for android.view.KeyEvent.isGamepadButton(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to