diff --git a/libraries/Keyboardio-MouseKeys/src/Keyboardio-MouseKeys.cpp b/libraries/Keyboardio-MouseKeys/src/Keyboardio-MouseKeys.cpp index c0098279..b788587a 100644 --- a/libraries/Keyboardio-MouseKeys/src/Keyboardio-MouseKeys.cpp +++ b/libraries/Keyboardio-MouseKeys/src/Keyboardio-MouseKeys.cpp @@ -56,5 +56,3 @@ static bool handleMouseKeys(Key mappedKey, byte row, byte col, uint8_t keyState) MouseKeys_::MouseKeys_(void) { event_handler_hook_add (handleMouseKeys); } - -MouseKeys_ MouseKeys; diff --git a/libraries/Keyboardio-MouseKeys/src/Keyboardio-MouseKeys.h b/libraries/Keyboardio-MouseKeys/src/Keyboardio-MouseKeys.h index a9846980..00ac6ef1 100644 --- a/libraries/Keyboardio-MouseKeys/src/Keyboardio-MouseKeys.h +++ b/libraries/Keyboardio-MouseKeys/src/Keyboardio-MouseKeys.h @@ -7,4 +7,4 @@ class MouseKeys_ { MouseKeys_ (void); }; -extern MouseKeys_ MouseKeys; +static MouseKeys_ MouseKeys;