mouse クラス : Left ゲッタ
説明
マウスの左ボタンが押されているかどうかを示す値を取得します。
構文
mouseInstance.Left
引数
無し。
返り値
| クラス | 説明 |
| bool | マウスの左ボタンが押されているかどうかを示す値。 |
サンプルコード
| 1: | mouse m = new mouse(); |
| 2: | bool pressed = m.Left; |
注意
左ボタンが押された場合、戻り値はtrueです。
左ボタンが押されていない場合、戻り値はfalseです。
マウスの左ボタンが押されているかどうかを示す値を取得します。
mouseInstance.Left
無し。
| クラス | 説明 |
| bool | マウスの左ボタンが押されているかどうかを示す値。 |
| 1: | mouse m = new mouse(); |
| 2: | bool pressed = m.Left; |
左ボタンが押された場合、戻り値はtrueです。
左ボタンが押されていない場合、戻り値はfalseです。