语言

KeyEvent.IsGamepadButton(Keycode) 方法

定义

如果指定的键码是游戏板按钮,则返回 true。

[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

参数

keyCode
Keycode

用于密钥代码的 Android.Views.Keycode 值。

返回

如此 如果键码是游戏板按钮,例如 #KEYCODE_BUTTON_A。

特性

注解

如果指定的键码是游戏板按钮,则返回 true。

适用于 . 的 android.view.KeyEvent.isGamepadButton(int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于