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

Add support for 1080p in Docked mode #100

Open
TooTallNate opened this issue Feb 23, 2024 · 1 comment · May be fixed by #101
Open

Add support for 1080p in Docked mode #100

TooTallNate opened this issue Feb 23, 2024 · 1 comment · May be fixed by #101
Labels
enhancement New feature or request

Comments

@TooTallNate
Copy link
Owner

TooTallNate commented Feb 23, 2024

Subscribe to the appletHook to get a callback when the operation mode changes:

void onAppletEvent(AppletHookType type, void* param) {
    if (type == AppletHookType_OnOperationMode) {
        bool docked = appletGetOperationMode() == AppletOperationMode_Console;
		// invoke JS function to trigger "resize" event
    }
}

// in main
    AppletHookCookie cookie;
    appletHook(&cookie, onAppletEvent, NULL);
  • Trigger a window "resize" event
  • If in framebuffer mode, re-create the framebuffer with the appropriate resolution
  • Is this behavior default, or opt-in?
    • If opt-out, what is the mechanism? Maybe preventDefault() on the "resize" event?
@TooTallNate TooTallNate linked a pull request Feb 25, 2024 that will close this issue
@TooTallNate TooTallNate added the enhancement New feature or request label Mar 16, 2024
@LauraWebdev
Copy link

FWIW: default behaviors for browsers is a resize event when maximizing the window
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants