bAlwaysShowTouchInterface
bAlwaysShowTouchInterface
#Overview
name: bAlwaysShowTouchInterface
The value of this variable can be defined or overridden in .ini config files. 1
.ini config file referencing this setting variable.
It is referenced in 2
C++ source files.
#Summary
#Setting Variables
#References In INI files
Location: <Workspace>/Engine/Config/BaseInput.ini:10, section: [/Script/Engine.InputSettings]
- INI Section:
/Script/Engine.InputSettings
- Raw value:
false
- Is Array:
False
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Runtime/Engine/Classes/GameFramework/InputSettings.h:106
Scope (from outer to inner):
file
class class UInputSettings : public UObject
Source code excerpt:
/** Should the touch input interface be shown always, or only when the platform has a touch screen? */
UPROPERTY(config, EditAnywhere, Category="Mobile")
uint8 bAlwaysShowTouchInterface:1;
/** Whether or not to show the console on 4 finger tap, on mobile platforms */
UPROPERTY(config, EditAnywhere, Category="Mobile")
uint8 bShowConsoleOnFourFingerTap:1;
/** Whether or not to use the gesture recognition system to convert touches in to gestures that can be bound and queried */
#Loc: <Workspace>/Engine/Source/Runtime/Slate/Private/Widgets/Input/SVirtualJoystick.cpp:65
Scope (from outer to inner):
file
function bool SVirtualJoystick::ShouldDisplayTouchInterface
Source code excerpt:
bool SVirtualJoystick::ShouldDisplayTouchInterface()
{
bool bAlwaysShowTouchInterface = false;
GConfig->GetBool(TEXT("/Script/Engine.InputSettings"), TEXT("bAlwaysShowTouchInterface"), bAlwaysShowTouchInterface, GInputIni);
// do we want to show virtual joysticks?
return FPlatformMisc::GetUseVirtualJoysticks() || bAlwaysShowTouchInterface || (FSlateApplication::Get().IsFakingTouchEvents() && FPlatformMisc::ShouldDisplayTouchInterfaceOnFakingTouchEvents());
}
static float ResolveRelativePosition(float Position, float RelativeTo, float ScaleFactor)
{
// absolute from edge
if (Position < -1.0f)