19 lines
546 B
C#
19 lines
546 B
C#
public static class In
|
|
{
|
|
static private ComInput inputSrc;
|
|
|
|
public static void Initialize(ComInput inputSource)
|
|
{
|
|
inputSrc = inputSource;
|
|
inputSrc.Initialize();
|
|
}
|
|
|
|
public static void ResetFrameData()
|
|
{
|
|
inputSrc?.ResetFrameStates();
|
|
}
|
|
|
|
public static bool GetButton(InSignal button) => inputSrc.GetButton(button);
|
|
public static bool GetButtonDown(InSignal button) => inputSrc.GetButtonDown(button);
|
|
public static bool GetButtonUp(InSignal button) => inputSrc.GetButtonUp(button);
|
|
} |