編輯

共用方式為


SKMouseButton Enum

Definition

Specifies constants that define which mouse button was pressed.

public enum SKMouseButton
Inheritance
SKMouseButton

Fields

Name Value Description
Unknown 0

An unknown mouse button was pressed.

Left 1

The left mouse button was pressed, or, a finger/pen was touched on the screen.

Middle 2

The middle mouse button was pressed.

Right 3

The right mouse button was pressed.

Applies to