Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shift/Alt/Ctrl + Key mixed up with 0.5.15 on Ubuntu-18 (wayland) #39

Closed
bofh69 opened this issue Jan 4, 2020 · 1 comment
Closed

Shift/Alt/Ctrl + Key mixed up with 0.5.15 on Ubuntu-18 (wayland) #39

bofh69 opened this issue Jan 4, 2020 · 1 comment

Comments

@bofh69
Copy link
Contributor

bofh69 commented Jan 4, 2020

I'm using rltk on Ubuntu-18.04LTS.

I use the following GameState with rltk:

struct State {}
impl GameState for State {
    fn tick(&mut self, ctx: &mut Rltk) {
        if ctx.shift {
            println!("SHIFT {:?}", ctx.key);
        }
        if ctx.alt {
            println!("ALT {:?}", ctx.key);
        }
    }
}

With some previous 0.5 version it worked as expected, shift+key showed SHIFT and the key. With 0.5.15 I get "SHIFT Some(LShift)" and "SHIFT Some(RShift)", but no other key together with either shift print anything. If I instead press ALT+ some key, I get SHIFT and the key printed...

The ALT message comes with the ALT keys, but to get ALT + some key, I need to press CTRL and the key.

@bofh69
Copy link
Contributor Author

bofh69 commented Jan 11, 2020

With 0.5.17 this works correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant