rust_minifb icon indicating copy to clipboard operation
rust_minifb copied to clipboard

Capital letters on Linux

Open ghost opened this issue 5 years ago • 6 comments

There is a problem receiving capital letters on linux. With shift key and caps lock.

ghost avatar Aug 13 '20 05:08 ghost

I just tested this under Ubuntu

        window.get_keys().map(|keys| {
            for t in keys {
                match t {
                    Key::LeftShift => println!("holding left shift!"),
                    Key::RightShift => println!("holding right!"),
                    Key::W => println!("holding w!"),
                    _ => (),
                }
            }
        });

And it seems to work.

emoon avatar Aug 13 '20 06:08 emoon

is this still a problem?

emoon avatar Aug 28 '20 10:08 emoon

@FloVanGH friendly ping on this

emoon avatar Sep 03 '20 13:09 emoon

I will check it tomorrow.

FloVanGH avatar Sep 03 '20 17:09 FloVanGH

Thanks!

emoon avatar Sep 03 '20 17:09 emoon

Still the same issue on minifb = "0.18"Linux (x11).

Get only upper case character fromfn add_char(&mut self, uni_char: u32)

FloVanGH avatar Sep 15 '20 19:09 FloVanGH