- focused
Name(名称):focused //检查程序是否接受鼠标或者键盘输入
Examples(例子):
if (focused) { // or "if (focused == true)"
ellipse(25, 25, 50, 50);
} else {
line(0, 0, 100, 100);
line(100, 0, 0, 100);
}
Description(描述):Confirms if a Processing program is “focused,” meaning that it is active and will accept mouse or keyboard input. This variable is “true” if it is focused and “false” if not.
确认一个处理程序是“focused”,意思是它是活动的,并且将接受鼠标或键盘输入。如果它是集中的,则返回”true”;如果不是,则返回” false “。
- 本文固定链接: http://iprocessing.cn/2017/07/03/focused检查程序是否接受鼠标或者键盘输入/
- 转载请注明: 卡萨布兰卡 于 Processing编程艺术 发表