当前按键是否在小键盘上?(只读)
使用此标志区分主键盘和小键盘上的键。
using UnityEngine;
public class Example : MonoBehaviour { // Creates a Label and prints Numeric Key pad is on/off // depending on the state of the numlock key. void OnGUI() { Event e = Event.current; if (e.numeric) { GUI.Label(new Rect(10, 10, 150, 20), "Numeric Key pad is on"); } else { GUI.Label(new Rect(10, 10, 150, 20), "Numeric Key pad is off"); } } }