Commit Graph

98 Commits

Author SHA1 Message Date
wei liu
c53c069cf8 Tentative fix for android safe zone.
#rb Chris.Babcock
#preflight 64547812d02ea5289fa6a8a3

[CL 25349049 by wei liu in ue5-main branch]
2023-05-05 01:47:29 -04:00
christopher fiala
57129aa917 Fix packaged Quest loading hang due to recent changes in FAndroidWindow::GetScreenRect and the OpenXR depth swapchain view rect initialization.
The FAndroidWindow::GetScreenRect change left us with a (0,0) resolution when using Quest, so the HMD wouldn't even try to render.
The depth swapchain changes cause the depth swapchain ViewRect to be uninitialized, resulting in an XR_ERROR_SWAPCHAIN_RECT_INVALID error.

#jira UE-181076
#rb robert.srinivasiah
#preflight 6430871cdf6c5c78fc2bb08d

[CL 24970602 by christopher fiala in ue5-main branch]
2023-04-07 17:25:37 -04:00
jack porter
6fc650c101 Update Swappy to the latest from https://android.googlesource.com/platform/frameworks/opt/gamesdk, modified to always use the Java DisplayManager and refresh rate selection
Enable Swappy on Android by default
Fixed: Swappy VK initialization which was missing a WindowHandle
Remove old GoogleGameSDK files that are no longer needed
Removed Java version of MemAdvisor
#rb Dmitriy.Dyomin
#jira UE-181102
#preflight 64302326285518071799c243

[CL 24965637 by jack porter in ue5-main branch]
2023-04-07 12:06:20 -04:00
allan bentham
af7e41dca5 Fix assert when Android 3d scene DPI is clamped by Android.3DSceneMinDPI.
- set secondary screen percent cvar from GT only.
#rb none
#preflight 6421d793c42c7fd1cb9708ec

[CL 24811082 by allan bentham in ue5-main branch]
2023-03-27 18:31:08 -04:00
allan bentham
2128af84cf Fix downstream cis
#rb none

[CL 24672190 by allan bentham in ue5-main branch]
2023-03-16 11:48:25 -04:00
allan bentham
e9c3559bf2 Fix downstream cis
#rb none

[CL 24672114 by allan bentham in ue5-main branch]
2023-03-16 11:45:30 -04:00
allan bentham
c0e8a0cb55 Android DPI window resolution selection cvars
- Android.WindowDPI, set a DPI to achieve when calculating the app's screen resolution.
 - Android.3DSceneMaxDesiredPixelCount, set a target pixel count for the 3D scene color resolution.
 - Android.3DSceneMinDPI, set a forced minimum DPI for the 3D scene color resolution, useful to ensure a minimum resolution quality on low DPI devices.
#rb Chris.babcock

[CL 24671989 by allan bentham in ue5-main branch]
2023-03-16 11:41:14 -04:00
chris babcock
ddbeafd4c3 Less frequent update to intensity for on device vibrator
#android
[REVIEW] [at]Peter.Sauerbrei
#rb Peter.Sauerbrei

[CL 24551994 by chris babcock in ue5-main branch]
2023-03-07 19:11:03 -05:00
chris babcock
a2e6292e96 Update force feedback support on Android
- Use VibrationEffect for intensity control
- Forward feedback to controller(s) if Android.UseControllerFeedback non-zero (defaults to 1)
- Fix issue with fingerprint scanner false detection as controller
- Does not continue feedback when backgrounded

#jira UE-168579
#android
[REVIEW] [at]Jack.Porter
#rb Jack.Porter

#preflight https://horde.devtools.epicgames.com/job/63e2ff10c11233cdcab34b6e

[CL 24068849 by chris babcock in ue5-main branch]
2023-02-08 01:41:47 -05:00
dmitriy dyomin
205f5e4947 Enable Swappy and NonVSync framerates on Android by default
#rb jack.porter

[CL 23964729 by dmitriy dyomin in ue5-main branch]
2023-02-02 01:25:48 -05:00
chris babcock
6a609b5bff Fix XBox and Razer wired controllers on Android 12+
#android
[REVIEW] [at]Peter.Sauerbrei
#rb Peter.Sauerbrei
#preflight

[CL 23939499 by chris babcock in ue5-main branch]
2023-01-31 17:20:43 -05:00
chris babcock
2ee9d41108 Update Android controllers
#android
[REVIEW] [at]Josh.Adams
#rb Josh.Adams

[CL 23832046 by chris babcock in ue5-main branch]
2023-01-24 11:32:33 -05:00
mathieu chamberland
82f520c8db AndroidInputInterface - PS5 controller now has the correct mapping for Android Version less than 12 and triggers are working correctly on Android 12.
#rb chris.babcock, maxime.vaillancourt, ghislain.theriault

[CL 23747935 by mathieu chamberland in ue5-main branch]
2023-01-17 18:37:50 -05:00
devin doucette
49fb379c64 Logging: Removed FFeedbackContext overrides that are now covered by the base
#jira UE-152840
#preflight 63b46f1e202bee5e2795f603
#rb Zousar.Shaker
#rnx

[CL 23570239 by devin doucette in ue5-main branch]
2023-01-03 16:41:11 -05:00
Josh Adams
5615b1a14d - Fixed Android warnings found with some upcoming toolchain changes
- Allow GoogleARSDK for x64 architecture
#rb chris.babcock
#preflight 638a5343976b1644cb6d9c01

[CL 23377164 by Josh Adams in ue5-main branch]
2022-12-02 14:45:19 -05:00
Wei Liu
031203ae2d Fix a bug of android safezone not updated if orientation changes from landscape to reverse landscape.
#jira UE-170632

#rb Chris.Babcock, Dmytro.Vovk
#preflight 637f87b2fa053c489a0b4e60

[CL 23259804 by Wei Liu in ue5-main branch]
2022-11-24 10:41:07 -05:00
mathieu dunlay
1896e2a23b Adding a remap type on android 12 and up.
[CL 22536080 by mathieu dunlay in ue5-main branch]
2022-10-14 17:50:33 -04:00
ben hoffman
89c7ed24b1 CIS Fix for deprecation functions in android input
#jira UE-159581
#rb trivial
#rnx
#preflight 62d092c78a3c9910d165831a

[CL 21100818 by ben hoffman in ue5-main branch]
2022-07-14 18:40:56 -04:00
Wei Liu
06c9a5c84e 1. Remove all flip-y completely and only flip y at the end on androidl GL with a native window api, no need to handle flip-y on high level.
2. Supports CustomDepth in translucency pass on mobile LDR.

#jira none

#rb Dmitriy.Dyomin
#preflight 62be9894d94b57687c68aed1

[CL 20911586 by Wei Liu in ue5-main branch]
2022-07-01 03:38:17 -04:00
ben hoffman
4de38291bf Fix an erroneous space in android input interface
#jira none
#rb trivial
#rnx
#preflight skip

[CL 20145470 by ben hoffman in ue5-main branch]
2022-05-11 14:16:44 -04:00
ben hoffman
e52b6b378a Update the Android input interface to utilize the new Platform Input Device mapper instead of the old CoreDelegates for when input device connection changes happen.
Replace uses of the old "int32 ControllerID" in favor of the new platform input device mapper. The new input device mapper will still call the old CoreDelegates until they are deprecated/removed, so there is no behavioral change here. Using the platform input device mapper will allow us to pass specific Input Device ID's around to slate and the game, so that we can properly route input events to and from specific devices.

#jira UE-147796
#rb david.harvey
#rb Chris.Babcock
#preflight 6273ebe6ca0ad32a967fbd5e

[CL 20144897 by ben hoffman in ue5-main branch]
2022-05-11 13:54:57 -04:00
Chris Babcock
3cba90fb40 Add r.Mobile.DesiredResX/Y for Android and -mobileresx and -mobileresy commandline overrides
#jira UE-144742
#android
#review @Jack.Porter
#rb Jack.Porter

#preflight https://horde.devtools.epicgames.com/job/6272ceb83e1f2a9d3a903d7a

[CL 20046802 by Chris Babcock in ue5-main branch]
2022-05-04 15:15:55 -04:00
julian smart
ddd8c17323 When Android.UnifyMotionSpace is set to 2, make sure rotation rate is right-screw
#jira UE-138975


#ROBOMERGE-AUTHOR: julian.smart
#ROBOMERGE-SOURCE: CL 19401935 via CL 19401938 via CL 19403679 via CL 19403971 via CL 19403983
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19406674 by julian smart in ue5-main branch]
2022-03-16 11:56:21 -04:00
julian smart
70107c8499 CVar Android.UnifyMotionSpace can now be set to 1 to match Unreal space, 2 to swap X and Y and make it right-handed (since most systems are right handed)
#jira UE-138975

[FYI] Chris.Babcock

#ROBOMERGE-AUTHOR: julian.smart
#ROBOMERGE-SOURCE: CL 19401343 via CL 19401345 via CL 19401533 via CL 19403492 via CL 19403639
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19406667 by julian smart in ue5-main branch]
2022-03-16 11:55:57 -04:00
julian smart
a09d660e19 Portrait to match landscape axes on Android
#ROBOMERGE-AUTHOR: julian.smart
#ROBOMERGE-SOURCE: CL 18670274 via CL 18670279 via CL 18670282 via CL 18670285 via CL 18670394 via CL 18670399 via CL 18670402
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v901-18665521)

[CL 18670411 by julian smart in ue5-main branch]
2022-01-19 21:13:58 -05:00