mirror of
https://github.com/Lorenzooone/cc3dsfs.git
synced 2026-09-12 02:25:28 -05:00
Add support for reduced output with Android port
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "frontend.hpp"
|
||||
#include "utils.hpp"
|
||||
#include <cmath>
|
||||
#include <thread>
|
||||
#include <SFML/System.hpp>
|
||||
@@ -1039,6 +1040,20 @@ JoystickAction get_joystick_action(uint32_t joystickId, uint32_t joy_button) {
|
||||
return JOY_ACTION_NONE;
|
||||
}
|
||||
|
||||
bool should_do_output(FrontendData* frontend_data) {
|
||||
#ifndef ANDROID_COMPILATION
|
||||
return (frontend_data->joint_screen->m_info.window_enabled) || (frontend_data->bot_screen->m_info.window_enabled) || (frontend_data->top_screen->m_info.window_enabled);
|
||||
#else
|
||||
if(frontend_data->joint_screen->m_info.window_enabled)
|
||||
return (!frontend_data->joint_screen->is_open()) || frontend_data->joint_screen->has_focus();
|
||||
if(frontend_data->bot_screen->m_info.window_enabled)
|
||||
return (!frontend_data->bot_screen->is_open()) || frontend_data->bot_screen->has_focus();
|
||||
if(frontend_data->top_screen->m_info.window_enabled)
|
||||
return (!frontend_data->top_screen->is_open()) || frontend_data->top_screen->has_focus();
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
void update_output(FrontendData* frontend_data, double frame_time, VideoOutputData *out_buf, InputVideoDataType video_data_type) {
|
||||
if(frontend_data->reload) {
|
||||
frontend_data->top_screen->reload();
|
||||
|
||||
Reference in New Issue
Block a user