Commit Graph

643 Commits

Author SHA1 Message Date
andrew scheidecker
17063a9ca3 Fix static analysis error in FWindowsConsoleOutputDevice2::FConsoleWindow::Start: CreateThread can return null, and SetThreadDescription should not be passed a null thread, so the result of CreateThread must be checked for null before calling SetThreadDescription.
#rb Henrik.Karlsson
#preflight 62f25a363b773d041625dc36

#ROBOMERGE-AUTHOR: andrew.scheidecker
#ROBOMERGE-SOURCE: CL 21286684 via CL 21293019 via CL 21293280 via CL 21293393
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21296406 by andrew scheidecker in ue5-main branch]
2022-08-09 15:44:26 -04:00
henrik karlsson
609b8b8b3b [ApplicationCore - WindowsConsoleOutputDevice2]
* Reduced lock time between game thread and hwnd thread
* Added name to thread for debugger
* Changed so ini-file is stored in same folder as binary so it doesnt get wiped when getting new builds
* Fixed crash during shutdown if Show(false) while window was never visible

#rb not used by anyone yet
#preflight 62edaecd185da2495f53eb9d

#ROBOMERGE-AUTHOR: henrik.karlsson
#ROBOMERGE-SOURCE: CL 21261892 via CL 21292742 via CL 21292908 via CL 21293076
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21296376 by henrik karlsson in ue5-main branch]
2022-08-09 15:42:54 -04:00
adam kinge
9e393e59c6 tvOS doesn't support UIInterfaceOrientations. Also, ViewController was accessing incorrect View for supported orientations.
#jira UE-160418
#rb none
#preflight

[CL 21270530 by adam kinge in ue5-main branch]
2022-08-08 12:41:13 -04:00
henrik karlsson
0d5f958385 [ApplicationCore - WindowsConsoleOutputDevice2]
* Fixed so selection/caret position is updated when number of log entries becomes larger than history buffer size
* Fixed so selection using keyboard and mouse works well number of log entries becomes larger than history buffer size
* Added tool tip hover feature for log listbox items
* Added help dialog
* Added popup menu with lots of features. Press right mouse button over log list view
* Added tooltip window that extends hovered log entry outside of log window if needed.
* Added so date/time is hidden by default and can be shown with commands showtime and showdatetime
* Fixed so filter include/exclude edit boxes size with log window size
* Added so include/exclude/command edit boxes show describable text when empty and removed static text in front of edit boxes
* Fixed so shift-end works properly to expand selection
* Fixed bug with log window default position is CW_USEDEFAULT when no stored position exists

#rb none
#preflight 62df2923a035cdf05e0ea12a

#ROBOMERGE-AUTHOR: henrik.karlsson
#ROBOMERGE-SOURCE: CL 21237383 via CL 21237586 via CL 21237590 via CL 21237592
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21237608 by henrik karlsson in ue5-main branch]
2022-07-25 22:04:55 -04:00
bernard lambert
6a95e5db6d - Added functions to get and set allowed screen orientations through the PlatformMisc class.
- Implemented logic for setting allowed screen orientations on iOS.
- Added possibility to set allowed screen orientation to SCREEN_ORIENTATION_SENSOR  on Android so that the screen orientation can be unlocked to adjust itself according to the sensor.
- Exposed PortraitSensor, LandscapeSensor and FullSensor screen orientations in blueprint library.

#RB Chris.Babcock Adam.Kinge

#ROBOMERGE-AUTHOR: bernard.lambert
#ROBOMERGE-SOURCE: CL 21219114 via CL 21219129 via CL 21219137 via CL 21219139 via CL 21219150
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21224334 by bernard lambert in ue5-main branch]
2022-07-22 13:19:40 -04:00
ben zeigler
20c993de76 Add functions to IPlatformInputDeviceMapper for converting to and from legacy user index that should work the same as the ones on FPlatformMisc
Fix the user login callback to use user index instead of raw platform id because the raw platform ids are not necessarily sequential
#jira UE-158727
#rb ben.hoffman, david.harvey
#preflight 62d9838bd54af4b9a20c7ade

[CL 21204223 by ben zeigler in ue5-main branch]
2022-07-21 13:42:41 -04:00
henrik karlsson
2f51d20b77 [ApplicationCore]
* WindowsConsoleOutputDevice2 - Fixed warning from static analysis (ConsoleType assigned twice)

#rb trivial
#preflight skip

#ROBOMERGE-AUTHOR: henrik.karlsson
#ROBOMERGE-SOURCE: CL 21197607 via CL 21198479 via CL 21198480 via CL 21198481
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21198709 by henrik karlsson in ue5-main branch]
2022-07-21 05:11:29 -04:00
nat parkinson
606862353e [Backout] - CL21196825
[FYI] bernard.lambert
Original CL Desc
-----------------------------------------------------------------
- Added functions to get and set allowed screen orientations through the PlatformMisc class.
- Implemented logic for setting allowed screen orientations on iOS.
- Added possibility to set allowed screen orientation to SCREEN_ORIENTATION_SENSOR  on Android so that the screen orientation can be unlocked to adjust itself according to the sensor.
- Exposed PortraitSensor, LandscapeSensor and FullSensor screen orientations in blueprint library.


#ROBOMERGE-AUTHOR: nat.parkinson
#ROBOMERGE-SOURCE: CL 21197038 via CL 21197050 via CL 21197054 via CL 21197064 via CL 21197075
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21197499 by nat parkinson in ue5-main branch]
2022-07-20 23:51:13 -04:00
bernard lambert
f595573ef0 - Added functions to get and set allowed screen orientations through the PlatformMisc class.
- Implemented logic for setting allowed screen orientations on iOS.
- Added possibility to set allowed screen orientation to SCREEN_ORIENTATION_SENSOR  on Android so that the screen orientation can be unlocked to adjust itself according to the sensor.
- Exposed PortraitSensor, LandscapeSensor and FullSensor screen orientations in blueprint library.


#ROBOMERGE-AUTHOR: bernard.lambert
#ROBOMERGE-SOURCE: CL 21196825 via CL 21196834 via CL 21196849 via CL 21196861 via CL 21196876
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21197495 by bernard lambert in ue5-main branch]
2022-07-20 23:51:04 -04:00
henrik karlsson
ddc5bd306a [ApplicationCore - WindowsConsoleOutputDevice2]
* Fixed deadlock that could happen when setting info in ini file triggered log which in turn was outputted to console (this could happen if runtime early out during startup)
* Fixed bad visual behavior when log becomes bigger than log list entry max count

#rb trivial
#preflight 62d856b61133256db6554cd5

#ROBOMERGE-AUTHOR: henrik.karlsson
#ROBOMERGE-SOURCE: CL 21190446 via CL 21195259 via CL 21195454 via CL 21195514
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21196932 by henrik karlsson in ue5-main branch]
2022-07-20 21:52:21 -04:00
henrik karlsson
3abd0b8188 [Runtime ApplicationCore]
* New Console for windows. Instead of using build in console window a win32 window is used with a bunch of convenience features
  * Activity fields. Useful to visualize what is going on in the process
  * Log list view that can be navigated while new entries are being added.
  * Filters that can include/exclude log entries based on keywords
  * Console command box. Execute your console commands directly in the console window. Note that they won't run until Tick loop has started.
  * Customizable color support. Make your dedicated server console dark gray and your client console light blue.
  * Remembers size and position separately for client/server/other. This means that UnrealEngine.exe can be used for all and console can be separately placed

Is currently only enabled if "-NewConsole" exists on command line. Once new console is well tested we will probably change so built-in console can be enabled with -DefaultConsole or something. There is one advantage with the default console and that is that it is still interactive even though process is not running. Sometimes that can be useful

#rb Devin.Doucette
#preflight 62d5dc13d54af4b9a247b08c

#ROBOMERGE-AUTHOR: henrik.karlsson
#ROBOMERGE-SOURCE: CL 21155164 via CL 21156947 via CL 21159300 via CL 21164070
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21182267 by henrik karlsson in ue5-main branch]
2022-07-20 12:08:55 -04:00
David Harvey
1f0ec3cc29 Add ShowPlatformUserSelector function as a platform-side replacement of ShowLoginUI.
- Will only be implemented on relevant platforms.

#jira UE-158953
#rb Ben.Hoffman
#preflight 62d81d31185da2495f0324d9

[CL 21181253 by David Harvey in ue5-main branch]
2022-07-20 11:38:23 -04:00
Bryan sefcik
b4a6e947d8 Ran IWYU on Public headers under Engine/Source/Runtime/...
Headers are updated to contain any missing #includes needed to compile and #includes are sorted.  Nothing is removed.

#ushell-cherrypick of 21065896 by bryan.sefcik
#preflight 62d4b1a5a6141b6adfb0c892
#jira

#ROBOMERGE-OWNER: Bryan.sefcik
#ROBOMERGE-AUTHOR: bryan.sefcik
#ROBOMERGE-SOURCE: CL 21150156 via CL 21151754 via CL 21154719
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)
#ROBOMERGE-CONFLICT from-shelf

[CL 21181076 by Bryan sefcik in ue5-main branch]
2022-07-20 11:31:36 -04:00
ben hoffman
69a4274d25 CIS Fix about checking keywords. Remove the enable/disable deprecation warnings from the GenericApplicationMessageHandler header file because they were already wrapped with them.
#jira none
#rb trivial
#rnx
#preflight 62d18f173b057e7274912392

[CL 21112332 by ben hoffman in ue5-main branch]
2022-07-15 12:37:17 -04:00
ben hoffman
530ad14f33 Fix Mac CIS to use the newer version of OnController functions
#jira none
#rb trivial
#rnx
#preflight 62d0a9dadc4397d38425960b

[CL 21101454 by ben hoffman in ue5-main branch]
2022-07-14 20:03:46 -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
ben hoffman
7f71aead5a Enable OnController_X function deprecations for the Slate App and the Generic Message handler.
#jira UE-156743
#rb Patrick.Boutot
#rnx
#preflight 62d083ff7e1c26dcd7d35502

[CL 21099901 by ben hoffman in ue5-main branch]
2022-07-14 17:32:34 -04:00
David Harvey
ea82214a80 Add ShowInputDeviceSelector function to display a platform-specific input device selection UI, if the platform supports it.
#jira UE-157951
#rnx
#preflight 62d007fae828869e6e264a7a
#rb Eric.McDaniel

[CL 21090992 by David Harvey in ue5-main branch]
2022-07-14 10:54:09 -04:00
ben hoffman
3e6ea254e5 Update the LinuxApplication to use the newer version of OnController functions instead of the old "int32 ControllerId" versions that are going to be deprecated soon.
#jira UE-156743
#rb Brandon.Schaefer
#preflight 62cd80983f422700272c5ff6
#rnx

[CL 21076774 by ben hoffman in ue5-main branch]
2022-07-13 14:25:50 -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
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