diff --git a/core/backends/android/imgui/imgui_impl_android.cpp b/core/backends/android/imgui/imgui_impl_android.cpp index bb8de811..ffefc4a6 100644 --- a/core/backends/android/imgui/imgui_impl_android.cpp +++ b/core/backends/android/imgui/imgui_impl_android.cpp @@ -203,6 +203,8 @@ int32_t ImGui_ImplAndroid_HandleInputEvent(AInputEvent* input_event) // but we have to process them separately to identify the actual button pressed. This is done below via // AMOTION_EVENT_ACTION_BUTTON_PRESS/_RELEASE. Here, we only process "FINGER" input (and "UNKNOWN", as a fallback). if((AMotionEvent_getToolType(input_event, event_pointer_index) == AMOTION_EVENT_TOOL_TYPE_FINGER) + || (AMotionEvent_getToolType(input_event, event_pointer_index) == AMOTION_EVENT_TOOL_TYPE_STYLUS) + || (AMotionEvent_getToolType(input_event, event_pointer_index) == AMOTION_EVENT_TOOL_TYPE_MOUSE) || (AMotionEvent_getToolType(input_event, event_pointer_index) == AMOTION_EVENT_TOOL_TYPE_UNKNOWN)) { io.AddMousePosEvent(AMotionEvent_getX(input_event, event_pointer_index), AMotionEvent_getY(input_event, event_pointer_index)); diff --git a/core/src/core.cpp b/core/src/core.cpp index d2fb7ce7..f5b6aca6 100644 --- a/core/src/core.cpp +++ b/core/src/core.cpp @@ -194,7 +194,11 @@ int sdrpp_main(int argc, char* argv[]) { // Themes defConfig["theme"] = "Dark"; +#ifdef __ANDROID__ + defConfig["uiScale"] = 3.0f; +#else defConfig["uiScale"] = 1.0f; +#endif defConfig["modules"] = json::array();