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

Make mouse::Button::Other take u16 instead of u8 #1797

Merged
merged 1 commit into from
May 23, 2023
Merged

Conversation

bbb651
Copy link
Contributor

@bbb651 bbb651 commented Apr 14, 2023

On wayland keys correspond to <input-event-codes.h>, and they are past the limit of u8, causing the
back and forward buttons to be 20 and 19 which definitely isn't right (they should all be around 0x110..=0x117).

This is a breaking change but will probably only affect apps on wayland relying on these wrong codes,
I also have a winit pr that will also necessitate a breaking change to this enum,
maybe this should wait so both of these should be done at the same time.

@i509VCB
Copy link

i509VCB commented Apr 15, 2023

Technically for Wayland the Other variant would need to be a full u32. However winit seems to only go to a u16 which is interesting.

Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hecrj hecrj added bug Something isn't working shell labels May 23, 2023
@hecrj hecrj added this to the 0.10.0 milestone May 23, 2023
@hecrj hecrj enabled auto-merge May 23, 2023 00:08
@hecrj hecrj disabled auto-merge May 23, 2023 00:33
@hecrj hecrj enabled auto-merge May 23, 2023 00:33
On wayland keys correspond to <input-event-codes.h>,
and they are past the limit of u8, causing the
back and forward buttons to be 20 and 19 which definitely isn't right
(they should all be around 0x110..=0x117).
@hecrj hecrj merged commit e31582e into iced-rs:master May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working shell
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants