daily update on 20240828 by nitload youmu, autotexture added
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user