Condividi tramite


InputDevice.SourceClassButton Field

Definition

Caution

This constant will be removed in the future version. Use Android.Views.InputSourceType enum directly instead of this field.

The input source has buttons or keys.

[Android.Runtime.Register("SOURCE_CLASS_BUTTON")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.InputSourceType enum directly instead of this field.", true)]
public const Android.Views.InputSourceType SourceClassButton = 1;
[<Android.Runtime.Register("SOURCE_CLASS_BUTTON")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.InputSourceType enum directly instead of this field.", true)>]
val mutable SourceClassButton : Android.Views.InputSourceType

Field Value

Value = 1

Implements

Attributes

Remarks

The input source has buttons or keys. Examples: #SOURCE_KEYBOARD, #SOURCE_DPAD.

A KeyEvent should be interpreted as a button or key press.

Use #getKeyCharacterMap to query the device's button and key mappings.

Java documentation for android.view.InputDevice.SOURCE_CLASS_BUTTON.

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