Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

Hotfix - fix bindings in input::keyboard

Latest
Compare
Choose a tag to compare
@SnirkImmington SnirkImmington released this 21 Aug 22:59
· 82 commits to master since this release

This fixes bindings in input::keyboard and adds a new binding.

Breaking changes

  • input::keyboard::{get_keysym_for_key, get_utf32_for_key} had previously been incorrectly bound to take an &KeyMod. They now take a full KeyboardModifiers. If you are using this function the way we are (calling it with empty modifiers to get the letter being pressed), it is suggested to construct the argument using KeyboardModifiers { leds: KeyboardLeds::empty(), mods: KeyMod::empty() }.

Non-breaking changes

  • We also added keyboard::get_current_keys. It is suggested to put the output of that through get_keysym_for_key as well as the reported keysyms are inaccurate if multiple keys are pressed.

Future changes

Wlc has had some changes as well. They can now build for *BSD, and we've already had an issue raised with ARM. We don't have a *BSD machine to test on but we will make sure cargo can compile us on both platforms.