首页 > 文档 > pmouseY鼠标上一帧的垂直位置
2017
07-14

pmouseY鼠标上一帧的垂直位置

1-12.pmouseY

Name(名称):pmouseY//鼠标在当前帧之前的帧的垂直位置。

Examples(例子):

// Move the mouse quickly to see the difference快速移动鼠标来看看区别

// between the current and previous position在当前和以前的位置之间

void draw() {

background(204);

line(20, mouseY, 80, pmouseY);

println(mouseY + ” : ” + pmouseY);

}

Description(描述):The system variable pmouseY always contains the vertical position of the mouse in the frame previous to the current frame.

系统变量pmouseY总是包含鼠标在当前帧之前的帧的垂直位置。

For more detail on how pmouseY is updated inside of mouse events and draw(), see the reference for pmouseX.

有关pmouseY如何在鼠标事件和绘制()中更新的更多细节,请参见pmouseX的参考。

Related(相关函数):mouseX

mouseY
pmouseX
mousePressed
mousePressed()
mouseReleased()
mouseClicked()
mouseMoved()
mouseButton
mouseWheel()


 



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

留下一个回复

你的email不会被公开。