-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UdonStringEvent, Logger, Keyboard V1
- Loading branch information
1 parent
fcf7ae5
commit 84e9a6d
Showing
22 changed files
with
460 additions
and
2,818 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using UdonSharp; | ||
using UnityEngine; | ||
using UnityEngine.UI; | ||
using VRC.SDKBase; | ||
using VRC.Udon; | ||
using VRC.Udon.Common.Interfaces; | ||
|
||
public class KeyEventListener : UdonSharpBehaviour | ||
{ | ||
public KeyboardManager keyboard; | ||
public UdonLogger logger; | ||
|
||
private void Update() | ||
{ | ||
var player = Networking.LocalPlayer; | ||
if (player != null && player.IsUserInVR()) | ||
{ | ||
return; | ||
} | ||
|
||
if (Input.GetKeyDown(KeyCode.K)) | ||
{ | ||
keyboard.Toggle(); | ||
logger.Toggle(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using UdonSharp; | ||
using UnityEngine; | ||
using VRC.SDKBase; | ||
using VRC.Udon; | ||
using VRC.Udon.Common.Interfaces; | ||
using UnityEngine.UI; | ||
|
||
public class BackspaceKey : UdonSharpBehaviour | ||
{ | ||
public KeyboardManager manager; | ||
|
||
public void PressKey() | ||
{ | ||
manager.Backspace(); | ||
} | ||
} |
Oops, something went wrong.