Event.control 键盘Ctrl键
var control : bool
Description描述
Is Control key held down? (Read Only)
Ctrl键被按住了么(只读)?
Returns true if any Control key is held down.
如果Ctrl键被按住返回真。
// Detects if the control key was pressed
//检测如果Ctrl键被按下
function OnGUI() {
var e : Event = Event.current;
if (e.control) {
Debug.Log("Control was pressed.");
}
}
最后修改:2010年12月31日 Friday 20:11