Skip to content

Commit 091ed09

Browse files
author
SimonePDA
authored
Merge pull request #230 from per1234/keyboard-return-types
Correct return types of Keyboard functions
2 parents 5b43f85 + ef9b306 commit 091ed09

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

Language/Functions/USB/Keyboard/keyboardPress.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ It is necessary to call link:../keyboardbegin[Keyboard.begin()] before using `pr
3232

3333
[float]
3434
=== Returns
35-
Nothing
35+
`size_t` : number of key presses sent.
3636

3737
--
3838
// OVERVIEW SECTION ENDS

Language/Functions/USB/Keyboard/keyboardPrint.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Sends a keystroke to a connected computer.
3232

3333
[float]
3434
=== Returns
35-
`int` : number of bytes sent.
35+
`size_t` : number of bytes sent.
3636

3737
--
3838
// OVERVIEW SECTION ENDS

Language/Functions/USB/Keyboard/keyboardPrintln.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Sends a keystroke to a connected computer, followed by a newline and carriage re
3535

3636
[float]
3737
=== Returns
38-
`int` : number of bytes sent
38+
`size_t` : number of bytes sent
3939

4040
--
4141
// OVERVIEW SECTION ENDS

Language/Functions/USB/Keyboard/keyboardRelease.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Lets go of the specified key. See link:../keyboardpress[Keyboard.press()] for mo
3030

3131
[float]
3232
=== Returns
33-
`int` : the number of keys released
33+
`size_t` : the number of keys released
3434

3535
--
3636
// OVERVIEW SECTION ENDS

Language/Functions/USB/Keyboard/keyboardReleaseAll.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Nothing
3030

3131
[float]
3232
=== Returns
33-
`int` : the number of keys released
33+
Nothing
3434

3535
--
3636
// OVERVIEW SECTION ENDS

Language/Functions/USB/Keyboard/keyboardWrite.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Keyboard.write(0b01000001); // same thing in binary (weird choice, but it works)
4141

4242
[float]
4343
=== Returns
44-
`int` : number of bytes sent.
44+
`size_t` : number of bytes sent.
4545

4646
--
4747
// OVERVIEW SECTION ENDS

0 commit comments

Comments
 (0)