(&self, mode: MouseMode)
| 310 | impl<'ipt, IP: InputAPI + ?Sized> KeyModule<'ipt, IP> { |
| 311 | /// Create a key module around an input API borrow. |
| 312 | pub fn new(ipt: &'ipt IP) -> Self { |
| 313 | Self { ipt } |
| 314 | } |
| 315 | |
| 316 | /// Return `true` while the key is held. |
| 317 | #[inline] |
| 318 | pub fn down(&self, key: KeyCode) -> bool { |
| 319 | self.ipt.keyboard().is_key_down(key) |
| 320 | } |
| 321 |
no test coverage detected