screen.getMouseYSpeed()
with these commands, you can easily make a review of the mouse.
- Code: Select all
mx = screen.getMouseXSpeed()
my = screen.getMouseYSpeed()
entity.rotate(camera,mx,my)
mx = screen.getMouseXSpeed()
my = screen.getMouseYSpeed()
entity.rotate(camera,mx,my)
msy = screen.getMouseY();
msx = screen.getMouseX();
NightHawk wrote:
we do have the commands which may work until we create a mouse delta version:
- Code: Select all
msy = screen.getMouseY();
msx = screen.getMouseX();
function's OnInit()
gh = screen.getHeight()
gw = screen.getWidth()
end
function onUpdate()
MoveMouse(gh/2,?/2) -- hold the cursor in the center of the screen.
msx = screen.getMouseXSpeed() --get the speed of movement of the cursor on X.
msy = screen.getMouseYSpeed() --get the speed of movement of the cursor on Y.
entity.rotate(camera, msx, msy)
end
iamcheeseontoast wrote:LOLOLOL I wish I knew what you guys were talking about..
Users browsing this forum: No registered users and 0 guests