Mouse.end()

名称

Mouse.end()

説明

接続したPCのマウスのエミュレーションを終了する。制御を始めるには、Mouse.begin()を使う。

書式

void Mouse_::end(void);

引数

なし。

戻り値

なし。

使用例

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#include <Mouse.h>

void setup() {
  pinMode(2, INPUT);
  //initiate the Mouse library
  Mouse.begin();
}

void loop() {
  //if the button is pressed, send a left mouse click
  //then end the Mouse emulation
  if (digitalRead(2) == HIGH) {
    Mouse.click();
    Mouse.end();
  }
}

参照

言語 Mouse.click()

言語 Mouse.move()

言語 Mouse.press()

言語 Mouse.release()

言語 Mouse.isPressed()

オリジナルのページ

https://www.arduino.cc/reference/en/language/functions/usb/mouse/mouseend/

Last Revision: 2019/02/21

実装の解析

まだ解析していません。

最終更新日

January 4, 2024

inserted by FC2 system