//x and y is absolute coordinate of the touchpad
//dx and dy is the change in mouse position since the last acquisition
// the variables screenX and screenY are the new positions x and y on the screen
var maxScreenX =800; // width Screen
var maxScreenY =300; // height Screen
function transfer1(x,y,dx,dy)
{
}
触摸板的尺寸为200x200,但我想在屏幕的尺寸上绘制800x300,以便我可以从一端绘制到另一端。我该怎么做?
一只名叫tom的猫
相关分类