Mouse.end()
描述
结束 HID 鼠标模拟行为。
如果要开始模拟,请呼叫 Mouse.begin() 函式。
语法
Mouse.end()
参数
回传
无回传值
范例
void setup(){ pinMode(2,INPUT); // 初始化 HID 鼠标函式库 Mouse.begin(); } void loop(){ // 外部按钮被按下后,送出双击鼠标左键的命令,然后停止鼠标模拟 if(digitalRead(2) == HIGH){ Mouse.click(); Mouse.end(); } }
See also
- Mouse.begin()
- Mouse.click()
- Mouse.move()
- Mouse.press()
- Mouse.release()
- Mouse.isPressed()
The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.