forked from moonlight-stream/moonlight-embedded
-
Notifications
You must be signed in to change notification settings - Fork 6
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
C++ Overhaul #38
Merged
Merged
C++ Overhaul #38
Conversation
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
Adds 'extern "C"' wrapper to ffmpeg.h
Moves pixel copying logic into separate "IN3dsRenderer" classes to make code more readable. Replaces "dual_screen" config option with a config option that allows users to select between multiple display types.
Replace base renderer interface with an abstract class. Add common pixel writing logic in the base renderer class.
Simplify some variable setup Fix freeze when going to home Use top and bottom renderers for dual screen renderer (bottom not working yet) Add debug option to prevent drawing frame counters
Centralize more display logic in the base renderer. Move performance bars to the display they're debugging. Update the default 3DS config settings to optimize for the new renderer.
Simplify touchscreen start, move, and stop event handlers. Move input initialization before stream initialization.
Silence ffmpeg build warnings
This reverts commit fc5bdcd.
Add keyboard graphics resources. Suppress build warnings that we were previously ignoring (will revisit in future MR)
Move TAB to INS key Maks shift key consistend between keyboards Fix temp/lock screen updates for alt keyboard Update color scheme to be more "2010's Nintendo" Simplify special key state management. Update the software decoder to work with the new renderer. Move the shader into the rendering directory.
Replace fprintf calls for the 3DS UI Fix stream variable reinitialization issues
Add logic for showing alternate number keys when shift is pressed
Add continuous touch handling for gamepad touch controls
Use rgb565 format for the bottom screen images Remove extra gfx exit/init calls Modify image colors to improve rgb565 visibility Centralize double buffering disable Add replace imagemagick with ffmpeg for rgb conversion
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
The basis of this changeset was replacing all of the 3DS specific C files with C++ files so I could simplify memory management and more easily avoid memory errors.
After that initial change, a lot of features I had been meaning to add got way easier to implement, so I just kept implementing them. New features include:
Changelog
Related Issues