forked from flutter/flutter
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose pointer type and buttons in embedder.h (flutter#9034)
Rather than hard-coding the type of incoming events to mouse, and synthesizing a primary button press for kDown/kUp, expose device kind and buttons in the API. For backwards compatibility, if the type is not set, the old behavior is used. If an embedder sets the type to mouse explicitly, however, they must also set correct button information. For the touch type, the API abstracts away the framework's internal expectation that a button is set for touch down/move for simplicity. Fixes flutter#32854
- Loading branch information
1 parent
64f18f2
commit 4dbb9ba
Showing
2 changed files
with
95 additions
and
22 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