-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ndk/event: Implement
SourceClass
bitflag
and provide `Source::cla…
…ss()` getter (#458) * ndk/event: Implement `SourceClass` `bitflag` and provide `Source::class()` getter This `enum` was never `pub` even though it serves a slight purpose to more easily classify various event sources, which is accounted for in the bitmask-like value of `AINPUT_SOURCE_XXX`. Even though every source currently only appears to use a single class value, the class variants all describe an individual bit and should be treated as a bitflags type. * ndk: Add `_ = !0` catch-all constant to all `bitflags`, allowing them to be extended Android may return values in `bitflags` that are not yet mapped or recognized in the `ndk` crate. This makes functions like `all()` and `!` behave unexpectedly when they truncate or limit their operation to known bits exclusively. A more likable solution is disabling functions that are susceptible to this, as was done in the `ash` crate.
- Loading branch information
Showing
6 changed files
with
42 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters