We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f5f176 commit 219993fCopy full SHA for 219993f
1 file changed
Plugins/CS/Keyboard.cs
@@ -27,13 +27,14 @@ public static class Keyboard
27
public static event Action<KeyCode> OnKeyPressed;
28
public static event Action<KeyCode> OnKeyReleased;
29
30
+#if !UNITY_EDITOR && UNITY_IOS
31
[RuntimeInitializeOnLoadMethod]
32
static void Init()
33
{
34
Keyboard_RegisterKeyPressCallback(OnKeyPressedCallback);
35
Keyboard_RegisterKeyReleaseCallback(OnKeyReleasedCallback);
36
}
-
37
+#endif
38
[MonoPInvokeCallback(typeof(LongCallback))]
39
static void OnKeyPressedCallback(long GCKeyCode)
40
0 commit comments