aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino
diff options
context:
space:
mode:
Diffstat (limited to 'cores/arduino')
-rw-r--r--cores/arduino/HID.cpp7
-rw-r--r--cores/arduino/USBAPI.h11
2 files changed, 1 insertions, 17 deletions
diff --git a/cores/arduino/HID.cpp b/cores/arduino/HID.cpp
index 9904993..b508f10 100644
--- a/cores/arduino/HID.cpp
+++ b/cores/arduino/HID.cpp
@@ -253,7 +253,7 @@ bool Mouse_::isPressed(uint8_t b)
//================================================================================
// Keyboard
-Keyboard_::Keyboard_() : _keyMap(0)
+Keyboard_::Keyboard_()
{
}
@@ -262,11 +262,6 @@ void Keyboard_::sendReport(KeyReport* keys)
HID_SendReport(2,keys,sizeof(KeyReport));
}
-void Keyboard_::setKeyMap(KeyMap* keyMap)
-{
- _keyMap = keyMap;
-}
-
extern
const uint8_t _asciimap[128] PROGMEM;
diff --git a/cores/arduino/USBAPI.h b/cores/arduino/USBAPI.h
index 6615fa8..3f71856 100644
--- a/cores/arduino/USBAPI.h
+++ b/cores/arduino/USBAPI.h
@@ -87,22 +87,11 @@ typedef struct
uint8_t keys[6];
} KeyReport;
-// Map a character into a key report
-// Called from Print to map text to keycodes
-class KeyMap
-{
-public:
- virtual void charToKey(int c, KeyReport* keyReport) = 0;
-};
-
-//
class Keyboard_ : public Print
{
private:
- KeyMap* _keyMap;
KeyReport _keyReport;
void sendReport(KeyReport* keys);
- void setKeyMap(KeyMap* keyMap);
public:
Keyboard_();
virtual size_t write(uint8_t k) {return type(k);};