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
using UnityEngine; | |
public class UnityCapsLockScript : MonoBehaviour | |
{ | |
bool _isCapsLock = false; | |
void OnGUI() | |
{ | |
// https://answers.unity.com/questions/1464150/how-to-get-the-keyboardos-capslock-state.html | |
// Original thanks to cooldude5757 on unity answers |