needed to build USB reports
(self)
| 202 | } |
| 203 | /// needed to build USB reports |
| 204 | pub fn as_modifier_bit(self) -> u8 { |
| 205 | if self.is_modifier() { |
| 206 | 1 << (self.to_u8() - KeyCode::LCtrl.to_u8()) |
| 207 | } else { |
| 208 | 0 |
| 209 | } |
| 210 | } |
| 211 | pub fn to_u8(self) -> u8 { |
| 212 | let u = (self as u32) - UNICODE_BELOW_256; |
| 213 | return u as u8; |
nothing calls this directly
no test coverage detected