From d47910efbdff03c3719d77136ca56b0fda90db48 Mon Sep 17 00:00:00 2001 From: Enyium <123484196+Enyium@users.noreply.github.com> Date: Mon, 16 Sep 2024 06:34:31 +0200 Subject: [PATCH] fix: Correct misspelled `teriary()`. Deprecate it in favor of `tertiary()`. --- android-activity/src/input.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/android-activity/src/input.rs b/android-activity/src/input.rs index 85a0b9f..260d3e3 100644 --- a/android-activity/src/input.rs +++ b/android-activity/src/input.rs @@ -395,10 +395,15 @@ impl ButtonState { self.0 & ndk_sys::AMOTION_EVENT_BUTTON_SECONDARY != 0 } #[inline] - pub fn teriary(self) -> bool { + pub fn tertiary(self) -> bool { self.0 & ndk_sys::AMOTION_EVENT_BUTTON_TERTIARY != 0 } #[inline] + #[deprecated = "misspelled; use `tertiary()` instead; will be removed in a future version"] + pub fn teriary(self) -> bool { + self.tertiary() + } + #[inline] pub fn back(self) -> bool { self.0 & ndk_sys::AMOTION_EVENT_BUTTON_BACK != 0 }