Add deprecation message for deprecated keyswitch_state functions

NOTE: these have been deprecated since commit 3154f7c on Jul 24, 2017
pull/201/head
Craig Disselkoen 7 years ago
parent 5121412a26
commit 7d6fc87e34

@ -38,7 +38,15 @@
// Deprecated - Remove once the core has transitioned // Deprecated - Remove once the core has transitioned
#define key_was_pressed(keyState) keyWasPressed(keyState) inline uint8_t __attribute__((deprecated("Use keyWasPressed instead"))) key_was_pressed(uint8_t keyState) {
#define key_is_pressed(keyState) keyIsPressed(keyState) return keyWasPressed(keyState);
#define key_toggled_on(keyState) keyToggledOn(keyState) }
#define key_toggled_off(keyState) keyToggledOff(keyState) inline uint8_t __attribute__((deprecated("Use keyIsPressed instead"))) key_is_pressed(uint8_t keyState) {
return keyIsPressed(keyState);
}
inline uint8_t __attribute__((deprecated("Use keyToggledOn instead"))) key_toggled_on(uint8_t keyState) {
return keyToggledOn(keyState);
}
inline uint8_t __attribute__((deprecated("Use keyToggledOff instead"))) key_toggled_off(uint8_t keyState) {
return keyToggledOff(keyState);
}

Loading…
Cancel
Save