Arduino Function: Mouse.end

Description

This function stops emulating the mouse connected to a computer.

Syntax

Mouse.end()

Returns

 none

Examples

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

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


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc