Skip to content

Commit

Permalink
temporary workaround for webOS 9
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Dec 24, 2024
1 parent 26576e4 commit 6336414
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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

0 comments on commit 6336414

Please sign in to comment.