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

Temporary Workaround for webOS 9 Cursor Issue #489

Merged
merged 1 commit into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/app/input/app_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "lvgl/lv_sdl_drv_input.h"

void app_input_init(app_input_t *input, app_t *app) {
input->app = app;
if (app->settings.condb_path != NULL) {
app_input_copy_initial_gamepad_mapping(&app->settings);
#if SDL_VERSION_ATLEAST(2, 0, 10)
Expand Down Expand Up @@ -44,6 +45,12 @@ void app_set_mouse_grab(app_input_t *input, bool grab) {
if (!app_configuration->hardware_mouse) {
SDL_SetRelativeMouseMode(grab && !app_configuration->absmouse ? SDL_TRUE : SDL_FALSE);
}
#ifdef TARGET_WEBOS
// Temporary workaround for webOS 9: https://github.com/mariotaku/moonlight-tv/issues/466
if (input->app->os_info.version.major >= 9) {
return;
}
#endif
SDL_ShowCursor(grab ? SDL_FALSE : SDL_TRUE);
}

Expand Down
1 change: 1 addition & 0 deletions src/app/input/app_input.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ typedef struct app_gamepad_state_t {
} app_gamepad_state_t;

typedef struct app_input_t {
struct app_t *app;
commons_gcdb_updater_t gcdb_updater;
SDL_Surface *blank_cursor_surface;
size_t max_num_gamepads;
Expand Down
Loading