forked from Georgegipa/ESP32-BLE-Combo
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathKeyboard.cpp
More file actions
53 lines (42 loc) · 787 Bytes
/
Copy pathKeyboard.cpp
File metadata and controls
53 lines (42 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include "BleKeyboard.h"
Keyboard_ Keyboard;
void Keyboard_::begin()
{
bleDevice.begin();
}
void Keyboard_::end()
{
bleDevice.end();
}
size_t Keyboard_::write(uint8_t k)
{
return bleDevice.write(k);
}
size_t Keyboard_::write(const MediaKeyReport m)
{
return bleDevice.write(m);
}
size_t Keyboard_::write(const uint8_t *buffer, size_t size)
{
return bleDevice.write(buffer, size);
}
size_t Keyboard_::press(uint8_t k)
{
return bleDevice.press(k);
}
size_t Keyboard_::press(const MediaKeyReport m)
{
return bleDevice.press(m);
}
size_t Keyboard_::release(uint8_t k)
{
return bleDevice.release(k);
}
size_t Keyboard_::release(const MediaKeyReport m)
{
return bleDevice.release(m);
}
void Keyboard_::releaseAll()
{
bleDevice.releaseAll();
}