forked from LukasBanana/LLGL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Android] Fixed event handling of pause/resume Android app.
When an Android app is paused, its ANativeWindow is destroyed (APP_CMD_TERM_WINDOW) and the dependent EGLSurface must be destroyed as well. When the app resumes, the ANativeWindow is re-initialized (APP_CMD_INIT_WINDOW) and the depednent EGLSurface must be re-created. This is handled via a Canvas event listener for the AndroidGLSwapChainContext that responds to the new callbacks OnInit and OnDestroy. Additional notes: - Deprecated OnQuit and PostQuit functions of Canvas event handlers; This was only intended for desktop platforms when a window close button is pressed. - Added OnInit and OnDestroy functions to Canvas::EventListener interface. - Moved Android input event handling from AndroidCanvas.cpp file to new AndroidInputEventHandler.cpp/.h files.
- Loading branch information
1 parent
03913a8
commit bc8dc02
Showing
12 changed files
with
419 additions
and
230 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
Oops, something went wrong.