Win32 API 日本語リファレンス
ホームUI.TabletPC › MouseButton

MouseButton

列挙型
基底型i4

メンバー 4

名前10進16進
NO_BUTTON00x0
LEFT_BUTTON10x1
RIGHT_BUTTON20x2
MIDDLE_BUTTON40x4

各言語での定義

列挙メンバーの定義。HSP タブは #define global(値は16進)。

typedef enum MouseButton : int {
    NO_BUTTON = 0,
    LEFT_BUTTON = 1,
    RIGHT_BUTTON = 2,
    MIDDLE_BUTTON = 4
} MouseButton;
public enum MouseButton : int
{
    NO_BUTTON = 0,
    LEFT_BUTTON = 1,
    RIGHT_BUTTON = 2,
    MIDDLE_BUTTON = 4,
}
Public Enum MouseButton As Integer
    NO_BUTTON = 0
    LEFT_BUTTON = 1
    RIGHT_BUTTON = 2
    MIDDLE_BUTTON = 4
End Enum
import enum

class MouseButton(enum.IntEnum):
    NO_BUTTON = 0
    LEFT_BUTTON = 1
    RIGHT_BUTTON = 2
    MIDDLE_BUTTON = 4
// MouseButton
pub const NO_BUTTON: i32 = 0;
pub const LEFT_BUTTON: i32 = 1;
pub const RIGHT_BUTTON: i32 = 2;
pub const MIDDLE_BUTTON: i32 = 4;
// MouseButton
const (
	NO_BUTTON int32 = 0
	LEFT_BUTTON int32 = 1
	RIGHT_BUTTON int32 = 2
	MIDDLE_BUTTON int32 = 4
)
const
  NO_BUTTON = 0;
  LEFT_BUTTON = 1;
  RIGHT_BUTTON = 2;
  MIDDLE_BUTTON = 4;
// MouseButton
pub const NO_BUTTON: i32 = 0;
pub const LEFT_BUTTON: i32 = 1;
pub const RIGHT_BUTTON: i32 = 2;
pub const MIDDLE_BUTTON: i32 = 4;
const
  NO_BUTTON* = 0
  LEFT_BUTTON* = 1
  RIGHT_BUTTON* = 2
  MIDDLE_BUTTON* = 4
enum MouseButton : int {
    NO_BUTTON = 0,
    LEFT_BUTTON = 1,
    RIGHT_BUTTON = 2,
    MIDDLE_BUTTON = 4,
}
#define global NO_BUTTON     0x0
#define global LEFT_BUTTON   0x1
#define global RIGHT_BUTTON  0x2
#define global MIDDLE_BUTTON 0x4