ホーム › UI.TabletPC › MouseButton
MouseButton
列挙型メンバー 4
| 名前 | 10進 | 16進 |
|---|---|---|
| NO_BUTTON | 0 | 0x0 |
| LEFT_BUTTON | 1 | 0x1 |
| RIGHT_BUTTON | 2 | 0x2 |
| MIDDLE_BUTTON | 4 | 0x4 |
各言語での定義
列挙メンバーの定義。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 Enumimport 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* = 4enum 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