daily update on 20240828 by nitload youmu, autotexture added

This commit is contained in:
Nitload
2024-08-28 10:58:31 +08:00
parent d082071f2d
commit 1ee4e4a42f
586 changed files with 60910 additions and 123106 deletions
+15 -15
View File
@@ -47,12 +47,12 @@ namespace StgSharp.MVVM.View
void CustomizedInitialize(Func<ITrigger, string, Action> keyRegister);
void Initialize(Func<string, Action> keyGetter);
void ProcessUserInput();
bool ValidateInitializing();
void Initialize(Func<string, Action> keyGetter);
}
protected abstract class ViewResponder<TView> : IViewResponder<TView> where TView : ViewBase
@@ -90,19 +90,6 @@ namespace StgSharp.MVVM.View
public abstract void CustomizedInitialize(Func<ITrigger, string, Action> keyRegister);
public void ProcessUserInput()
{
foreach (KeyValuePair<ITrigger, Action> pair in keyCallbackIndex)
{
if (InternalIO.glfwGetKey(_binding.ViewHandle, pair.Key.TargetKeyOrButtonID) == pair.Key.TriggeredStatus)
{
pair.Value();
}
}
}
public abstract bool ValidateInitializing();
public void Initialize(Func<string, Action> keyGetter)
{
if (_isInitialized)
@@ -123,6 +110,19 @@ namespace StgSharp.MVVM.View
);
}
public void ProcessUserInput()
{
foreach (KeyValuePair<ITrigger, Action> pair in keyCallbackIndex)
{
if (InternalIO.glfwGetKey(_binding.ViewHandle, pair.Key.TargetKeyOrButtonID) == pair.Key.TriggeredStatus)
{
pair.Value();
}
}
}
public abstract bool ValidateInitializing();
}
}