Commit Graph

691 Commits

Author SHA1 Message Date
danny couture
624b970cdb Add more info to the log when the createwindow function fails and remove unlocalized messagebox that was highly likely to fail to show a window anyway
#rnx
#jira UE-168160
#rb Martin.Sevigny
#preflight 6374e8e1232e3d12cb2a5c25

[CL 23153330 by danny couture in ue5-main branch]
2022-11-16 09:09:41 -05:00
Rafa Lecina
0eb72998ee Add missing release for a property
#jira UE-169916
#review-23134713 @Sam.Zamani, @Bertrand.Carre, @Chris.varnsverry
#preflight

[CL 23135028 by Rafa Lecina in ue5-main branch]
2022-11-15 08:58:17 -05:00
Rafa Lecina
fa8f4245ea Add missing dealloc instance method found by static analysis
#jira UE-169916
#review @Sam.Zamani, @Bertrand.Carre, @Chris.Varnsverry
#preflight

[CL 23133521 by Rafa Lecina in ue5-main branch]
2022-11-15 04:43:10 -05:00
joe pribele
1d8537f20b changed PRAGMA_DISABLE_OPTIMIZATION to UE_DISABLE_OPTIMIZATION_SHIP
#preflight 6372ba60ee4d25f90ae3d207

[CL 23128414 by joe pribele in ue5-main branch]
2022-11-14 17:31:05 -05:00
ben hoffman
8c72c729fa Add the low level Trigger Input Device properties to IInputInterface and use them in the PS5 controllers
#jira UE-158888
#rb Wojciech.Krywult
#preflight 63692201ed07daaa9ab09b95

[CL 23014313 by ben hoffman in ue5-main branch]
2022-11-07 13:32:55 -05:00
henrik karlsson
998789b3fc Fixed non-unity/pch errors
#rb none
#jira none
#preflight skipped

[CL 22982751 by henrik karlsson in ue5-main branch]
2022-11-04 03:02:59 -04:00
henrik karlsson
b985fbd1b1 Removed lots of includes in high traffic headers in order to reduce compile times. Headers are still included if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_2 is set to 1
List of highlights
* PlayerController - Removed ForceFeedback and and OnlineReplStructs
* Class - Removed Package.h
* World - Pawn, Blueprint and GameInstance
* Actor - CoreNet, HitResult and ActorDatalayer
* EngineBaseTypes - TaskGraphInterface
* AssetManager - AssetData
* Scene/Child/ActorComponent - CoreNet
* AnimInstance - AttributesRuntime, Skeleton, AnimCurveTypes, AnimMontage, BonePose
* BulkData - IoDispatcher
* AssetData - IoDispatcher, LinkerLoad
* SecureHash - AsyncWork
* CanvasTypes - UnrealEngine, StaticMeshResources
* IpAddress - AsyncWork, Stats

#preflight 6363717ece676ae8688f5d8c
#rb none

[CL 22968258 by henrik karlsson in ue5-main branch]
2022-11-03 17:56:44 -04:00
ben hoffman
ac0136ab29 Add The Input Device trigger enum to the IInputInterface and as a noexport blueprint type. This will allow you to specify which trigger should recieve effects like resistence, feedback, vibration, etc.
#jira UE-158873
#rb David.Harvey
#rnx
#preflight 6362a0889160784fc31a9429

[CL 22961379 by ben hoffman in ue5-main branch]
2022-11-03 15:02:03 -04:00
ben hoffman
06daad67d1 Expose "GetPrimaryPlatformUser" to blueprints so that you can use it as a back up in widgets. Fix a small comment typo in the description.
#rb trivial
#rnx
#preflight skip

[CL 22894895 by ben hoffman in ue5-main branch]
2022-11-01 19:28:26 -04:00
henrik karlsson
cd1466475b Fixed up const/constexpr variables in header files to be "inline"
This is required for c++ modules/header units in order to decide if constexpr/const value should be available to outside module

#preflight 635c0b5c1803be35c767e0ea
#rb none

[CL 22835882 by henrik karlsson in ue5-main branch]
2022-10-28 15:38:42 -04:00
Matt Peters
f583694b1d FInputDeviceLightColorProperty: add constructor that takes bool and color to match the deprecated old class. Fix callsites using the deprecated old class.
#rb None, fixing build break
#rnx
#review-22803172 ben.hoffman
#preflight None, fixing build break

[CL 22803171 by Matt Peters in ue5-main branch]
2022-10-26 22:40:56 -04:00
ben hoffman
1728fead77 Create a generic "FInputDeviceLightColorProperty" that can be used on any platform. Update the Sony platforms to use it instead and deprecate the old one.
#jira UE-158880
#rb Wojciech.Krywult
#preflight 6356d0b33a547c3da32e5e52

[CL 22786927 by ben hoffman in ue5-main branch]
2022-10-26 15:26:24 -04:00
Zak Middleton
a68f85d9d2 #ue5 - Truncation/conversion fixes for ProjectLauncher, MediaAssets, ProjectTargetPlatformEditor, and associated UI code.
#jira UE-160837
#rb Dave.Jones2, Andrew.Davidson
#preflight 63518de9f92c325024c03814

[CL 22693245 by Zak Middleton in ue5-main branch]
2022-10-21 12:58:17 -04:00
ben hoffman
ed98ecade2 Update the platform input device mapper to expose the Allocate User and Device functions as public, allowing for platforms to allocate new input device ID's and platform user's if they want, making for a little bit easier to use API.
When setting the input device connection state, only call the delegate that there was a connection state change if the state is actually different than the existing one.

#rb david.harvey
#rnx
#preflight 634dd24f9c29024c9853f17e

[CL 22619965 by ben hoffman in ue5-main branch]
2022-10-19 03:06:16 -04:00
pj kack
7a12aa6728 TSet & TMap: Make sure any dynamic hash allocation is released when Empty() is called without additional slack.
Memory improvements on top of performance improvements in 11535961.
Allow the hash allocation to shrink for calls to Empty(), Shrink(), Compact() and CompactStable().
Let TSparseArray::Compact() shrink the data array just as for Shrink() and CompactStable().
Note: The private function TSet::ShouldRehash() is only called from Empty() and ConditionalRehash(), and ConditionalRehash() with bAllowShrinking=true is only called from Relax() via Shrink(), so there should be no impact on other/growth scenarios.
Modify GetAllocatedSize() for TSet, TMap and TSparseArray to only return any dynamically allocated size from the underlying allocators and change return type from uint32 to SIZE_T (just as for TArray and FContainerAllocatorInterface).

#rb johan.torp,steve.robb
#preflight 634952f4ce524ed356dafde7, 63496f80f622f6c4bb1c0321, 634d65df9c29024c982ecf26

[CL 22595144 by pj kack in ue5-main branch]
2022-10-18 04:03:13 -04:00
satoshi-iwaki
1958213835 Fix iOS delegate method name typo for remote notification registration failure. Github PR #8541
#jira UE-132541
#rnx
#rb trivial
#preflight none for iOS notifications

[CL 22582670 by satoshi-iwaki in ue5-main branch]
2022-10-17 18:22:14 -04:00
marc audy
927adb79be Correct deprecation versions
#preflight trivial
#rnx

[CL 22573046 by marc audy in ue5-main branch]
2022-10-17 15:13:35 -04: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
201d92a399 Depreacte the old IForceFeedbackSystem from 2015 because it is just an empty subclass of IInputInterface. It has a comment for "This class is deprecated in favor of IInputInputface", but none of the references were ever replaced.
#rb david.garza
#rb Nate.Strohmyer
#preflight 6348687357048bdb82c7a77a

[CL 22535172 by ben hoffman in ue5-main branch]
2022-10-14 17:23:47 -04:00
adam kinge
7323541906 Fixes incorrect screen launch rotation due to invalid mask value before IOSView is initialized.
#jira UE-167012
[REVIEW] [at]jack.porter
#preflight 63477b75fa31324bb179aa27
#rnx
#lockdown jack.porter

[CL 22505584 by adam kinge in ue5-main branch]
2022-10-13 11:42:15 -04:00
jeff fisher
aa42f0edd8 Haptic Soundwave support for stereo sounds.
-Stereo sounds can be used to provide two-channel haptics, provided the platform supports that.
#jira UE-165614
#rb Robert.Srinivasiah
#preflight 63372027f76de2d4d5bb1f84

[CL 22286550 by jeff fisher in ue5-main branch]
2022-09-30 23:05:12 -04:00
Rafa Lecina
773a0b6c5d Simplify iOS in app purchases code and fix some small issues
- Replaced delegates to communicate from StoreKit to C++ by an internal Objective-C proxy type that sequences requests/notifications on the proper thread
  - StoreKit calls are made on main thread. There is no documentation about thread safety on SKPaymentQueue API so I did not want to take risks. All notifications to the observer are already made on the main thread
  - C++ plugin code is expected to be run on game thread
  - SKRequests delegate methods are received in a worker thread so they need to be sequenced to the game thread
- Reduced the amount of notification functions between C++ and Objective-C layers
- Remove receipts for finalized purchases
- Removed per user cached transactions because iOS/StoreKit is single user. It was confusing and was already lead to some bugs
- Product quantity was ignored (it is possible to buy several items of the same type in one purchase)
- Hidden some private types
- Added C++ RAII wrapper for Objective-C instances to automatically handle manual retain/release

Tested using StoreKit testing in Xcode: https://developer.apple.com/documentation/xcode/setting-up-storekit-testing-in-xcode
Was able to test consumable, non consumable, interrupted and deferred transactions

#jira UE-163490
#review @Bertrand.Carre, @Axel.Riffard, @Jack.Porter, @Adam.Kinge, @Roman.Dzieciol, @Josh.Markewicz
#preflight 6335cd81a852bd922cf47e33

[CL 22266047 by Rafa Lecina in ue5-main branch]
2022-09-30 03:31:14 -04:00
patrick laflamme
aae0e9dd6a Fixed CIS non-unity ShaderCompileWorker errors reported in WindowsPlatformSplash.cpp.
#jira none
#rb trivial
#preflight trivial

[CL 22145756 by patrick laflamme in ue5-main branch]
2022-09-22 17:35:23 -04:00
patrick laflamme
9fc1447777 Fixed deadlock in the splash screen happening when the main thread goes faster than the splash screen and try to hide the splash before the splash screen thread even created the window.
#jira UE-161578 - Game stuck on splash screen
#rb Vincent.Gauthier
#preflight 632b651a7b582f58abe53440

[CL 22140481 by patrick laflamme in ue5-main branch]
2022-09-22 14:07:38 -04:00
Josh Adams
35f58f3dd4 - Fixed up various threading and menu initialization issues with Programs on Mac
- Moved boilerplate program startup code into a shared Obj-C class, MacProgramDelegate
#rb zack.neyland
#fyi brandon.schaefer,robert.seiver
#preflight 632b45dba4769ad71456b18b

[CL 22116672 by Josh Adams in ue5-main branch]
2022-09-21 13:20:37 -04:00