Commit Graph

623 Commits

Author SHA1 Message Date
ben hoffman
5152e5009f Remove an over-aggressive ensure when mapping input devices. This ensure was there to check if there was a default platform user that was unpaired, which is possible on some platforms.
#jira UE-157356
#rb trivial
#rnx
#preflight 62ba1d73176b16bd384f8466

[CL 20840290 by ben hoffman in ue5-main branch]
2022-06-27 17:29:39 -04:00
David Harvey
39772d18cc Allow platforms to override the platform input device mapper.
#jira UE-157486
#rnx
#rb Ben.Hoffman
#preflight 62b96a7eba62f4498a243a3f

[CL 20828356 by David Harvey in ue5-main branch]
2022-06-27 04:35:46 -04:00
adam kinge
be901f27d8 Add r.Mobile.DesiredResX/Y and -mobileresx/y commandline overrides to iOS. Also clears out some old iOS OpenGL references.
#jira UE-144740
#review-20346289 @jack.porter
#preflight 62b3c405687e4346b0856aa1

[CL 20808666 by adam kinge in ue5-main branch]
2022-06-24 09:46:43 -04:00
Robb Surridge
0a5a02c5b2 Coding standard fixes: gender-inclusive language
#jira UE-156429
#preflight 62b32e826a25ba6ae52f94bd
#rb jason.walter

[CL 20795375 by Robb Surridge in ue5-main branch]
2022-06-23 11:14:07 -04:00
michael atchison
3f60716f72 Revert changes to WindowsPlatformSplash due to a race condition.
[REVIEW] [at]rob.cannaday, [at]sam.zamani

#ROBOMERGE-AUTHOR: michael.atchison
#ROBOMERGE-SOURCE: CL 20763346 via CL 20763529 via CL 20763572 via CL 20763609 via CL 20763625
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v970-20704180)

[CL 20765155 by michael atchison in ue5-main branch]
2022-06-21 16:44:35 -04:00
ben hoffman
4570549036 Replace calls to the old OnControllerX functions in slate with the new version that has a PlatformUser/InputDevice
#jira UE-147796
#preflight 62a9ef17634e82e5d1e90084
#rnx
#rb dave.jones2

[CL 20670964 by ben hoffman in ue5-main branch]
2022-06-15 11:49:18 -04:00
ben hoffman
a3a9765823 Fix a bug where the app would recursively call itself because there was an implicit cast to int32 from Platform user
#jira none
#rb trivial
#rnx
#preflight skip

[CL 20659254 by ben hoffman in ue5-main branch]
2022-06-14 18:10:17 -04:00
ben hoffman
80850587dd Update SlateApplication and the message handler to take in FInputDeviceId and FPlatformId instead of the old int32 controllerid for controller input
#jira UE-147796
#rb trivial
#preflight 62a8f9dd0c386ccae48c2ae1

[CL 20658936 by ben hoffman in ue5-main branch]
2022-06-14 17:49:49 -04:00
Josh Adams
cf7b982c03 - Fixed more MacOSX*.sdk -> MacOSX.sdk
#rb will.damon
#preflight skip

[CL 20536668 by Josh Adams in ue5-main branch]
2022-06-07 09:25:54 -04:00
ben hoffman
d2c5fbec57 When mapping the legacy int32 controllerID checkif there is already an allocated platform user id for the input device ID. If there is then we can return that instead of allocating a new one. Add a virtual function that will let you specify that we should create a new platform user id if it is a new input device, mapping each input device to a single platform user. This will be the case on some platforms that don't allow multiple input devices per user.
Update SonyControllers to use the known user index as the platform user, this way we will allocate a new platform user for different input devices.

#jira UE-147796
#rb trivial
#rnx
#preflight 629910378f4373181f425f6e

[CL 20474934 by ben hoffman in ue5-main branch]
2022-06-02 16:05:41 -04:00
michael atchison
3d80c7b20a Remove dependence on UGameInstance for update check.
Fall back to using the first logged in account on beacon connection when no other player is found.
Fix resource leak in windows splash screen.

[REVIEW] [at]chris.gagnon, [at]eric.knapik, [at]sam.zamani
#preflight 628e6f2982597362d1061d09

#ROBOMERGE-AUTHOR: michael.atchison
#ROBOMERGE-SOURCE: CL 20372471 via CL 20372807 via CL 20373493 via CL 20373519
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20374253 by michael atchison in ue5-main branch]
2022-05-25 20:44:07 -04:00
ben hoffman
8006b9defb Add a "Primary Platform User" virtual function to allow platforms to define a primary user for things like the keyboard and mouse which there will only be one of. Map the Default Input device to the Primary Platform user upon construction of the device mapper. This gaurantees that there will be a platform user registered for the SlateApplication upon start up.
Add a callback to OnUserLoginChangedEvent to the device mapper. This will provide platforms a hook for when a platform user is logged in or out and allow you to remap any previously paired input devices away from the now logged out user.

#jira UE-147792
#rb david.harvey
#preflight 628d2d25347b7778b6ceb043

[CL 20363459 by ben hoffman in ue5-main branch]
2022-05-25 09:27:37 -04:00
ben hoffman
ec9daec419 Deprecate the core delegates for OnControllerConnectionChange and OnControllerPairingChange in favor of the new IPlatformInputDeviceMapper versions that will allow you to get info about what gamepad specifically has sent input events.
#jira UE-147796
#rb marc.audy
#preflight 628663ca2b53e2be4caf4450

[CL 20285694 by ben hoffman in ue5-main branch]
2022-05-19 15:36:55 -04:00
Devin Doucette
3045e3c75f Logging: Changed CanBeUsedOnPanicThread() to return false by default
The previous default of CanBeUsedOnAnyThread() proved unsafe since some output devices can safely be used on any thread but cannot safely be used during a crash. CanBeUsedOnAnyThread() was used pre-5.1 to control serialization to an output device during a crash, but optimizations in 5.1 have uncovered that some of these were never safe.

#preflight 62856506614041edb7a6de4b
#rb Zousar.Shaker
#rnx

[CL 20280354 by Devin Doucette in ue5-main branch]
2022-05-19 10:39:18 -04:00
David Harvey
9cc4146fbc move HoloLens runtime source to platform extension folder.
#jira UE-149794
#rnx
#rb Jeff.Fisher
#preflight 6284cd49614041edb76395dc

[CL 20258963 by David Harvey in ue5-main branch]
2022-05-18 06:59:59 -04:00
Andrew Davidson
9741042a2b Reduce use of UE_DECLARE_LWC_TYPE macro to improve Intellisense.
Moved Math forward declarations from CoreFwd.h to Math/MathFwd.h
#rb steve.robb
#preflight 62837df43c1cdc59e2b07dd5

[CL 20240602 by Andrew Davidson in ue5-main branch]
2022-05-17 07:05:35 -04:00
mathieu dunlay
d1c9bd0b41 Adding FirstMove events to windows, enabled with "WindowsApplication.EnableFirstTouchEvent"
#ROBOMERGE-AUTHOR: mathieu.dunlay
#ROBOMERGE-SOURCE: CL 20163603 via CL 20164288 via CL 20164397 via CL 20164495 via CL 20164557
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20165691 by mathieu dunlay in ue5-main branch]
2022-05-12 12:13:54 -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
ben hoffman
e4af12b977 XInputInterface: 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
#preflight 62741ef72e58cb727dfc2ac8

[CL 20075962 by ben hoffman in ue5-main branch]
2022-05-06 10:56:52 -04:00
ben hoffman
ff61d48be3 Linux Application: 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 Brandon.Schaefer
#preflight 62741ca6ca0ad32a968784c7

[CL 20062913 by ben hoffman in ue5-main branch]
2022-05-05 15:24:21 -04:00
ben hoffman
05358abfff Mac: 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
#preflight 6273f70303269096abca9ce1

[CL 20060140 by ben hoffman in ue5-main branch]
2022-05-05 13:18:13 -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
ben hoffman
2c3741269c Update comment in the GenericPlatformInputDeviceMapper to keep the BP lib up to date
#jira UE-147801
#rb trivial
#preflight skip
#rnx

[CL 20008057 by ben hoffman in ue5-main branch]
2022-05-02 10:10:10 -04:00
chris constantinescu
1278a26f76 Low level tests further refactoring and test resource deployment
#preflight 626955ed0d4ac78d716eacf0
#rnx

[CL 19941830 by chris constantinescu in ue5-main branch]
2022-04-27 12:36:35 -04:00