For any feature requests to either the Skyline Engine or the websites and forums please leave your suggestion here.

getMouseSpeed()

getMouseSpeed()

Postby ant0N » 14 Dec 2012, 16:54

screen.getMouseXSpeed()
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)
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: getMouseSpeed()

Postby StarFire » 14 Dec 2012, 17:19

Thanks antON, I have added these to the to-do list for you ;)

we do have the commands which may work until we create a mouse delta version:

Code: Select all
msy = screen.getMouseY();
msx = screen.getMouseX();
User avatar
StarFire
Skyline Founder
Skyline Founder
 
Posts: 1678
Joined: 03 Jan 2012, 18:50
Location: UK
Skill: Great creative
Skill: Programmer
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer

Re: getMouseSpeed()

Postby ant0N » 15 Dec 2012, 10:09

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();


Yes, I know, but this is not something that should be.
if you use etoi team, we can't hold the mouse cursor.
you need to add one more command:
MoveMouse(x, y)
example:
Code: Select all
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
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: getMouseSpeed()

Postby StarFire » 15 Dec 2012, 10:32

I have added this to the to-do list for you ;)
User avatar
StarFire
Skyline Founder
Skyline Founder
 
Posts: 1678
Joined: 03 Jan 2012, 18:50
Location: UK
Skill: Great creative
Skill: Programmer
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer

Re: getMouseSpeed()

Postby ant0N » 15 Dec 2012, 10:39

thank you, NightHawk! :)
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: getMouseSpeed()

Postby iamcheeseontoast » 15 Dec 2012, 11:35

LOLOLOL I wish I knew what you guys were talking about..
iamcheeseontoast
Skyline Contributor
Skyline Contributor
 
Posts: 160
Joined: 07 Sep 2012, 00:54
Location: Scotland

Re: getMouseSpeed()

Postby ant0N » 15 Dec 2012, 11:50

iamcheeseontoast wrote:LOLOLOL I wish I knew what you guys were talking about..

:D learn LUA! you won't regret.. ;)
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: getMouseSpeed()

Postby StarFire » 15 Dec 2012, 12:35

lol :D
User avatar
StarFire
Skyline Founder
Skyline Founder
 
Posts: 1678
Joined: 03 Jan 2012, 18:50
Location: UK
Skill: Great creative
Skill: Programmer
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 0 guests