Navigation
API > API/Runtime > API/Runtime/ApplicationCore > API/Runtime/ApplicationCore/GenericPlatform
Inheritance Hierarchy
- FGenericPlatformApplicationMisc
- FNullPlatformApplicationMisc
References
| Module | ApplicationCore |
| Header | /Engine/Source/Runtime/ApplicationCore/Public/GenericPlatform/GenericPlatformApplicationMisc.h |
| Include | #include "GenericPlatform/GenericPlatformApplicationMisc.h" |
Syntax
struct FGenericPlatformApplicationMisc
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | UE expects mouse coordinates in screen space. | ||
| void | ClipboardCopy
(
const TCHAR* Str |
Copies text to the operating system clipboard. | |
| void | ClipboardPaste
(
FString& Dest |
Pastes in text from the operating system clipboard. | |
| EScreenPhysicalAccuracy | ComputePhysicalScreenDensity
(
int32& OutScreenDensity |
Gets the physical size of the screen if possible. Some platforms lie, some platforms don't know. | |
| bool | ControlScreensaver
(
EScreenSaverAction Action |
Disables screensaver (if platform supports such an API) | |
| EScreenPhysicalAccuracy | ConvertInchesToPixels
(
T Inches, |
If we know or can approximate the pixel density of the screen we will convert the incoming inches to pixels on the device. | |
| EScreenPhysicalAccuracy | ConvertPixelsToInches
(
T Pixels, |
If we know or can approximate the pixel density of the screen we will convert the incoming pixels to inches on the device. | |
| GenericApplication * | Creates an application instance. | ||
| FOutputDeviceConsole * | Creates a console output device for this platform. Should only be called once. | ||
| IPlatformInputDeviceMapper * | Gets a pointer to the default platform input device manager. | ||
| void | EnableMotionData
(
bool bEnable |
Whether to enable controller motion data polling (by default motion data is enabled) Some platforms may want to disable it to reduce battery drain | |
| float | GetDPIScaleFactorAtPoint
(
float X, |
Returns monitor's DPI scale factor at given screen coordinates (expressed in pixels) | |
| FOutputDeviceError * | Gets a pointer to the platform error output device singleton. | ||
| FFeedbackContext * | Gets a pointer to the default platform feedback context implementation. | ||
| UTexture2D * | GetGamepadButtonGlyph
(
const FGamepadKeyNames::Type& ButtonKey, |
Returns a texture of the glyph representing the specified button on the specified controller, or nullptr if not supported. | |
| FString | GetGamepadControllerName
(
int32 ControllerId |
Returns name of gamepad if controller id assigned to a gamepad | |
| EScreenPhysicalAccuracy | GetPhysicalScreenDensity
(
int32& OutScreenDensity |
Gets the physical size of the screen if possible. Some platforms lie, some platforms don't know. | |
| FLinearColor | GetScreenPixelColor
(
const FVector2D& InScreenPos, |
Sample the displayed pixel color from anywhere on the screen using the OS | |
| bool | GetWindowTitleMatchingText
(
const TCHAR* TitleStartsWith, |
Searches for a window that matches the window name or the title starts with a particular text. | |
| void | Init () |
||
| bool | IsControllerAssignedToGamepad
(
int32 ControllerId |
Returns true if controller id assigned to a gamepad | |
| bool | |||
| bool | Whether controller motion data polling is enabled (by default motion data is enabled) | ||
| bool | Returns state of screensaver (if platform supports it) | ||
| bool | Returns true if the specified application has a visible window, and that window is active/has focus/is selected | ||
| void | Load the preinit modules required by this platform, typically they are the renderer modules | ||
| void | Load the platform-specific startup modules | ||
| void | PostInit () |
||
| void | PreInit () |
||
| void | Prevents screen-saver from kicking in by moving the mouse by 0 pixels. | ||
| void | PumpMessages
(
bool bFromMainLoop |
Pumps Windows messages. | |
| void | Request application to minimize (goto background). | ||
| bool | Returns whether the platform wants to use a touch screen for a virtual keyboard. | ||
| void | Resets the gamepad to player controller id assignments | ||
| void | ResetGamepadAssignmentToController
(
int32 ControllerId |
Resets the gamepad assignment to player controller id | |
| void | SetGamepadsAllowed
(
bool bAllowed |
Set whether gamepads are allowed at the platform level. | |
| void | SetGamepadsBlockDeviceFeedback
(
bool bAllowed |
Set whether gamepads are allowed at the platform level. | |
| void | Allows the OS to enable high DPI mode | ||
| bool | ShowInputDeviceSelector
(
FPlatformUserId InitiatingUserId, |
Asyncronously display the platform-specific input device selection UI, if supported. | |
| bool | ShowPlatformUserSelector
(
FInputDeviceId InitiatingInputDeviceId, |
Asyncronously display the platform-specific user selection UI, if supported. | |
| void | TearDown () |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EScreenSaverAction |