mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 09:35:25 +00:00
Add the option to have no delay on input image change
This commit is contained in:
parent
191ab410aa
commit
077fea7d12
@ -154,8 +154,15 @@ void UInputImage::UpdateImage()
|
||||
|
||||
void UInputImage::MarkImageDirty()
|
||||
{
|
||||
bIsDirty = true;
|
||||
DelayUpdate = 0.1f;
|
||||
if (UpdateDelay > 0)
|
||||
{
|
||||
bIsDirty = true;
|
||||
DelayUpdate = UpdateDelay;
|
||||
}
|
||||
else
|
||||
{
|
||||
UpdateImage();
|
||||
}
|
||||
}
|
||||
|
||||
// Tickables
|
||||
|
@ -37,6 +37,10 @@ protected:
|
||||
UPROPERTY(EditAnywhere)
|
||||
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
|
||||
UPROPERTY(EditAnywhere)
|
||||
int PlayerIndex = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user