Loading...

Reference.KeyboardReleaseAll History

Hide minor edits - Show changes to markup

April 27, 2012, at 06:24 PM by Scott Fitzgerald -
Changed lines 62-64 from:
to:
April 27, 2012, at 04:44 PM by Scott Fitzgerald -
Changed lines 54-55 from:


\\

to:
April 16, 2012, at 10:57 AM by Scott Fitzgerald -
Changed lines 18-20 from:

None

to:

int : the number of keys released

March 28, 2012, at 03:01 PM by Scott Fitzgerald -
Changed lines 7-8 from:

Lets go of all keys

to:

Lets go of all keys currently pressed. See Keyboard.press() for additional information.

Changed lines 18-53 from:

None\\

to:

None

Example

(:source lang=arduino:)

// use this option for OSX: char ctrlKey = KEY_LEFT_GUI; // use this option for Windows and Linux: // char ctrlKey = KEY_LEFT_CTRL;

void setup() {

  // make pin 2 an input and turn on the 
  // pullup resistor so it goes high unless
  // connected to ground:
  pinMode(2, INPUT_PULLUP);
  // initialize control over the keyboard:
  Keyboard.begin();

}

void loop() {

  while (digitalRead(2) == HIGH) {
    // do nothing until pin 2 goes low
    delay(500);
  }
  delay(1000);
  // new document:
  Keyboard.press(ctrlKey);
  Keyboard.press('n');
  delay(100);
  Keyboard.releaseAll();
  // wait for new window to open:
  delay(1000);

}

(:sourceend:)

Added line 55:

\\

March 16, 2012, at 04:46 PM by Scott Fitzgerald -
Changed lines 3-4 from:

Keyboard.ReleaseAll()

to:

Keyboard.releaseAll()

Changed lines 7-8 from:

Lets go al all keys

to:

Lets go of all keys

Changed lines 10-11 from:

Keyboard.ReleaseAll()

to:

Keyboard.releaseAll()

March 16, 2012, at 04:46 PM by Scott Fitzgerald -
Changed lines 7-8 from:
to:

Lets go al all keys

March 16, 2012, at 04:45 PM by Scott Fitzgerald -
Added lines 1-19:

Keyboard

Keyboard.ReleaseAll()

Description

Syntax

Keyboard.ReleaseAll()

Parameters

None

Returns

None
\\




Bookmark and Share