Skip to content

Fix usage of isize + reverted some changes for Mouse #568

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

Merged
merged 6 commits into from
Dec 9, 2016

Conversation

Cobrand
Copy link
Member

@Cobrand Cobrand commented Dec 6, 2016

This PR is here only for the travis run, please ignore

THIS BREAKS THE API, mostly gfx and mixer's.

(isize in enums and in your code are bad, avoid using them !)

If possible I'd like someone with a 32bit architecture, and someone on windows to test this as well. I do think it works on every platform but we can never be too sure.

Closes #283 for good


This change is Reviewable

Changing MouseButtonDown and MouseButtonUp broke the API
while it wasn't useful to do so; since the 'None' in Option
represents Unknown MouseButton (and not Non-present ones),
it is clearer to have an enum variant called Unknown to
make the distinction
@AngryLawyer
Copy link
Member

This all looks good to me, although I don't have access to Windows or a 32 bit machine

@Cobrand Cobrand merged commit 8e5a095 into Rust-SDL2:master Dec 9, 2016
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

Successfully merging this pull request may close these issues.

2 participants