mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 17:45:23 +00:00
Add the option to have no delay on input image change
This commit is contained in:
parent
191ab410aa
commit
077fea7d12
@ -153,9 +153,16 @@ void UInputImage::UpdateImage()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void UInputImage::MarkImageDirty()
|
void UInputImage::MarkImageDirty()
|
||||||
|
{
|
||||||
|
if (UpdateDelay > 0)
|
||||||
{
|
{
|
||||||
bIsDirty = true;
|
bIsDirty = true;
|
||||||
DelayUpdate = 0.1f;
|
DelayUpdate = UpdateDelay;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
UpdateImage();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tickables
|
// Tickables
|
||||||
|
@ -37,6 +37,10 @@ protected:
|
|||||||
UPROPERTY(EditAnywhere)
|
UPROPERTY(EditAnywhere)
|
||||||
FKey Key;
|
FKey Key;
|
||||||
|
|
||||||
|
/// When input mode changes, how quickly to update
|
||||||
|
UPROPERTY(EditAnywhere)
|
||||||
|
float UpdateDelay = 0.1f;
|
||||||
|
|
||||||
/// The player index for which the input should be looked up
|
/// The player index for which the input should be looked up
|
||||||
UPROPERTY(EditAnywhere)
|
UPROPERTY(EditAnywhere)
|
||||||
int PlayerIndex = 0;
|
int PlayerIndex = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user