Event Horizon :: View topic - Mouse Control
FAQ Log in
Search Profile
Memberlist Usergroups
Log in to check your private messages
Register
Mouse Control
Post new topic   Reply to topic
Event Horizon Forum Index » Event Horizon » Mouse Control
View previous topic :: View next topic  
Author Message
Paul



Joined: 17 Apr 2004
Posts: 447
Location: Chicago

 Post Posted: Sun Oct 10, 2004 7:58 pm    Post subject: Mouse Control
Reply with quote

OK, I'm looking at adding mouse control now Very Happy But I'm not quite sure how to do it. So read this, and let me know what you think. I have a few different ways in mind that this could work. I suppose I could just try them all out, but I'd rather see what you think, first Smile

Right now, you go UP, DOWN, LEFT, or RIGHT at full angular acceleration according to whether your keys are pressed. Now with a mouse, a more appropriate method might be to specify angular velocity, otherwise if you had the mouse slightly off-center you would still find yourself eventually rotating at full speed, if you didn't correct. For example, specifying angular velocity, moving the mouse to the far left would indicate that you want to rotate left at full angular velocity. Or I could leave that as indicating you want full angular acceleration.

And that's just for the horizontal! For vertical, there's also the option of specifying a direct angle you would like to point at. For example, moving the mouse to the top of the screen could indicate that you would like to point upward at your maximum angle. Or alternatively, it could indicate you want maximum upward angular velocity, in which case you would have to return the mouse to neutral once you reached the desired angle. Or, it could also specify maximum upward angular acceleration, which would require you to actually move the mouse below neutral to slow you down to stop at the angle you want.

So let me know what you think, and I'll start coding! Very Happy
_________________
Differentiation is an integral part of calculus.
 Back to top »
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Paul



Joined: 17 Apr 2004
Posts: 447
Location: Chicago

 Post Posted: Wed Oct 13, 2004 7:18 pm    Post subject:
Reply with quote

Well, I've been experimenting, and it seems that using the mouse to indicate desired angular velocity in both the horizontal and vertical directions seems to work quite well both in terms of easy coding and controlling, so I think that's what I'll stick with. I just need to fix it up to work under windowed mode and add mouse button support now. Hopefully I can get that out by the end of the week. Very Happy
_________________
Differentiation is an integral part of calculus.
 Back to top »
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Mike73x



Joined: 12 Jul 2004
Posts: 71
Location: Perth, Australia

 Post Posted: Thu Oct 14, 2004 11:24 am    Post subject:
Reply with quote

Sounds great. Ships will still be limited to their max angular velocity, right? And is mouse control working for the 3rd person view too?
 Back to top »
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
aplasticspork



Joined: 18 Apr 2004
Posts: 136
Location: Seattle, Wa

 Post Posted: Thu Oct 14, 2004 11:11 pm    Post subject:
Reply with quote

oooohh, mouse control, sounds like a party!!! anyway...i dont really have anything to contribute here as of now, other than to say that it sounds good Very Happy
_________________
This space left intentionally blank.
 Back to top »
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Event Horizon Forum Index » Event Horizon » Mouse Control
Post new topic   Reply to topic All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Solaris phpBB theme/template by Jakob Persson
Copyright © Jakob Persson 2003



Powered by phpBB © 2001, 2002 phpBB Group