Skip to content

Commit 219993f

Browse files
committed
Keyboard
1 parent 7f5f176 commit 219993f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Plugins/CS/Keyboard.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ public static class Keyboard
2727
public static event Action<KeyCode> OnKeyPressed;
2828
public static event Action<KeyCode> OnKeyReleased;
2929

30+
#if !UNITY_EDITOR && UNITY_IOS
3031
[RuntimeInitializeOnLoadMethod]
3132
static void Init()
3233
{
3334
Keyboard_RegisterKeyPressCallback(OnKeyPressedCallback);
3435
Keyboard_RegisterKeyReleaseCallback(OnKeyReleasedCallback);
3536
}
36-
37+
#endif
3738
[MonoPInvokeCallback(typeof(LongCallback))]
3839
static void OnKeyPressedCallback(long GCKeyCode)
3940
{

0 commit comments

Comments
 (0)