modifiers are ... not the same on every machine huh

parse-tree
Jordan Orelli 2 years ago
parent edcabd16c7
commit c7a0a404fe

@ -306,24 +306,8 @@ fn main() -> Result<()> {
None, None,
))?; ))?;
} }
} else if key_code == 74 && modifiers == 40 { } else if key_code == 74 && modifiers | Console::LEFT_CTRL_PRESSED > 0 {
// key j modifier ctrl
// let text = "X";
let text = "•"; let text = "•";
// let z = text.encode_utf16().map(|c| c.to_ne_bytes());
//let t16: Vec<u16> = text
// .encode_utf16()
// .chain(std::iter::once(0 as u16))
// .collect();
// t16.as_ptr()
// let (_, k, _) = t16.align_to::<u8>();
// let x: &[u8] = &[0x20, 0x22, 0x00, 0x00];
//let x: &[u16] = &[0x2022];
//let mut z = x[0].to_ne_bytes();
//let z: [u8] = [(0x2022 as u16).to_ne_bytes()];
//let mut z = Vec<u8>::new();
//text.as_bytes()
Error::check(Console::WriteConsoleA( Error::check(Console::WriteConsoleA(
stdout, stdout,
text.as_bytes(), text.as_bytes(),

Loading…
Cancel
Save