31 public static event Action<int, Key>
KeyDown;
33 public static event Action<int, Key>
KeyUp;
44 double num =
_KeyboardData[keyboardIndex].KeysDownRepeatArray[(int)key];
53 for (
int i = 0; i < 4; i++) {
56 for (
int j = 0; j <
_KeyboardData[i].KeysDownArray.Length; j++) {
67 for (
int i = 0; i < 4; i++) {
73 for (
int j = 0; j <
_KeyboardData[i].KeysDownOnceArray.Length; j++) {
76 for (
int k = 0; k <
_KeyboardData[i].KeysDownRepeatArray.Length; k++) {
107 _KeyboardData[keyboardIndex].KeysDownOnceArray[(int)key] =
true;
108 _KeyboardData[keyboardIndex].KeysDownRepeatArray[(int)key] = -1.0;
110 KeyDown?.Invoke(keyboardIndex, key);
119 _KeyboardData[keyboardIndex].KeysDownArray[(int)key] =
false;
121 KeyUp?.Invoke(keyboardIndex, key);
static double FrameStartTime
double[] KeysDownRepeatArray
static bool IsKeyDownRepeat(int keyboardIndex, Key key)
static bool IsKeyDownOnce(int keyboardIndex, Key key)
static bool IsConnected(int keyboardIndex)
static Action< int, char > CharacterEntered
static void SetIsConnected(int keyboardIndex, bool value)
static bool BackButtonQuitsApp
static bool IsKeyDown(int keyboardIndex, Key key)
static double KeyFirstRepeatTime
static Action< int, Key > KeyUp
static KeyboardData[] _KeyboardData
static ? char LastChar(int keyboardIndex)
static double KeyNextRepeatTime
static bool ProcessKeyDown(int keyboardIndex, Key key)
static bool ProcessCharacterEntered(int keyboardIndex, char ch)
static Action< int, Key > KeyDown
static bool ProcessKeyUp(int keyboardIndex, Key key)
static ? Key LastKey(int keyboardIndex)
static void BeforeFrame()