core: button: inline accessor for modifier state

This commit is contained in:
Richard Acayan 2024-08-04 21:32:44 -04:00
parent 00e55c9566
commit 551381f0b6

View file

@ -184,6 +184,7 @@ impl<D: Display, K: Keyboard> Button<D, K> {
&self.layout &self.layout
} }
#[inline(always)]
pub fn mod_state(&self) -> &[ModState; MODIFIERS_MAX] pub fn mod_state(&self) -> &[ModState; MODIFIERS_MAX]
{ {
&self.modifiers &self.modifiers