首页 > 文档 > focused检查程序是否接受鼠标或者键盘输入
2017
07-03

focused检查程序是否接受鼠标或者键盘输入

  1. 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 “

 

 

 

 

 



最后编辑:
作者:卡萨布兰卡
这个作者貌似有点懒,什么都没有留下。

留下一个回复

你的email不会被公开。