Mouse control

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

mcarans
---- E L I T E ----
---- E L I T E ----
Posts: 320
Joined: Sun Jun 20, 2010 6:00 pm

Mouse configuration in a file

Post by mcarans »

Rather than configuring yaw vs roll, up vs down, mouse buttons and wheel by way of M and CTRL-M, perhaps this could be put in a configuration file?
User avatar
Poro
Deadly
Deadly
Posts: 249
Joined: Sun Jan 03, 2010 1:51 am
Location: Don't look in your aft view...
Contact:

Post by Poro »

DaddyHoggy wrote:
:roll: :oops: Yeh, well, it's late.

Just amazed somebody would stop playing something as good as Oolite because mouse control didn't include yaw, so I guess my brain just ignored that bit.
Don't worry, I was starting to feel the 'itch' again :), I only stopped for a while because I had switched from a trader role to a more combat-oriented role, and since I just couldn't get the hang of roll/pitch, my options were using keyboard only (alright, but not great) or buy a joystick.

I opted to just wait for 1.74 to come out and get right back to hunting those fugitives.
mcarans
---- E L I T E ----
---- E L I T E ----
Posts: 320
Joined: Sun Jun 20, 2010 6:00 pm

Joystick and mouse

Post by mcarans »

I can understand you waiting to have mouse yaw for combat.

I used to use joystick and mouse for some FPS shooters and I think I used it for Freelancer as well.

In Oolite, I could envisage using the joystick to strafe left/right and accelerate/decelerate and the mouse to aim (ie. point the nose of the ship). Roll might be the twist function that some joysticks have.
mcarans
---- E L I T E ----
---- E L I T E ----
Posts: 320
Joined: Sun Jun 20, 2010 6:00 pm

Invert mouse

Post by mcarans »

It was either for Frontier First Encounters or Freelancer that the joystick did the reverse of what I expected, a bit like the mouse now in Oolite.

In the end I messed around with the joystick driver and got it to invert the controls as I wanted. Anyone know how to do that with the mouse in Linux?
User avatar
Mistiff
Poor
Poor
Posts: 4
Joined: Wed Jul 08, 2009 4:23 pm

Post by Mistiff »

DaddyHoggy wrote:
Just amazed somebody would stop playing something as good as Oolite because mouse control didn't include yaw, so I guess my brain just ignored that bit.
I haven't stopped playing Oolite, and I don't think I will: it's too great :D

I made this request for a reason only...

I'm not playing Oolite on my main PC since I bought a netbook. The game runs really well on the Samsung N130 (Win 7) and I like to play it in bed 8) .

But imagine... A wooden (little) tablet to put the netbook on it, the mouse and the power cord... Everything put on my legs. Now, put in the scene a wired Xbox360 joypad (the one used to play on the main PC).

Something seems to evoke the Saker cockpit description in Frontier: First Encounters manual to me (plastichrome panel and liqui-coach sit...) :?

In this situation, using a pad is not that easy. I'd rather play using mouse.

But mouse control is not that comfortable to me as joystick control, expecially in hard combat situations.

I made this control suggestion only to fulfill the gap between the two control modes...

So anyone could play Oolite in bed, on his own netbook, being able to choose the preferred control method (I will be the first 8) )
mcarans
---- E L I T E ----
---- E L I T E ----
Posts: 320
Joined: Sun Jun 20, 2010 6:00 pm

Post by mcarans »

Mistiff wrote:
MOUSE UP = nose up
MOUSE DOWN = nose down
MOUSE LEFT = strafe left
MOUSE RIGHT = strafe right
RIGHT MOUSE BUTTON + MOUSE LEFT/RIGHT = roll left/right (usefull in manual docking)
CENTER MOUSE BUTTON = center all axis
MOUSE WHEEL = engine speed
LEFT MOUSE BUTTON = fire
I can see how this would be ideal for playing with your bedroom setup. I think what this shows is that the controller setup be that keyboard, joystick or mouse, needs to be entirely user configurable.
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

mcarans wrote:
Mistiff wrote:
MOUSE UP = nose up
MOUSE DOWN = nose down
MOUSE LEFT = strafe left
MOUSE RIGHT = strafe right
RIGHT MOUSE BUTTON + MOUSE LEFT/RIGHT = roll left/right (usefull in manual docking)
CENTER MOUSE BUTTON = center all axis
MOUSE WHEEL = engine speed
LEFT MOUSE BUTTON = fire
I can see how this would be ideal for playing with your bedroom setup. I think what this shows is that the controller setup be that keyboard, joystick or mouse, needs to be entirely user configurable.
But complete user reconfigurablility for mouse/KB/Joystick across 3 OS platforms using Common Open Source Libraries seems to be much easier said than done.
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
mcarans
---- E L I T E ----
---- E L I T E ----
Posts: 320
Joined: Sun Jun 20, 2010 6:00 pm

Post by mcarans »

We need an OpenCL (Open Controller Library)
mcarans
---- E L I T E ----
---- E L I T E ----
Posts: 320
Joined: Sun Jun 20, 2010 6:00 pm

Post by mcarans »

Doesn't the SDL that Oolite uses abstract from the complexities of supporting controllers on multiple OSs? (It's description says: Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.)

If not, maybe Allegrol (http://alleg.sourceforge.net/) could be used. (Allegro is a game programming library for C/C++ developers distributed freely, supporting the following platforms: Unix (Linux, FreeBSD, etc.), Windows, MacOS X and Haiku/BeOS. Older versions also support DOS and QNX. It provides many functions for graphics, sounds, player input (keyboard, mouse and joystick) and timers.)
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

Given an infinite amount of free time, and an infinite amount of free brain power, all is indeed possible. Us people developing for Oolite seem to be falling somewhat short of the mark... :)

However, all is not lost! If you have some programming experience, do feel free to add all the extra tweakability to the mouse / enable Oolite to use allegro instead of / in addition to SDL! ;)

As always, everybody is invited to contribute: if it works & we agree it doesn't 'break' the gameplay, we can then integrate the new code to trunk. That's how some new hud positioning options (to cope with different proportions screens using just one hud.plist) & the 2nd mode (fastest route as opposed to least number of jumps) on the advanced navigational array got inside the 1.74.1 code in the first place.

While on the subject of custom input, I'm sure it would be really nice to have a key config & a mouse config screen, even though I never felt the need to reconfigure keys myself (and yes, I play using the keyboard, none of these newfangled 'mice' and 'joy-sticks' for me, thankyouverymuch...). Anyone who codes those two config screens will get my eternal gratitude - well, maybe not eternal, but gratitude nonetheless! :D
Last edited by Kaks on Wed Jun 30, 2010 2:18 pm, edited 2 times in total.
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
mcarans
---- E L I T E ----
---- E L I T E ----
Posts: 320
Joined: Sun Jun 20, 2010 6:00 pm

Post by mcarans »

I'm not denigrating the fine efforts of all Oolite and OXP developers. Far from it. I am amazed at what has been achieved.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

And we can achieve even more! :)

Anyway, it's always worth repeating that the door is always open for people to improve on the Oolite codebase... that's how every one on the current dev team got involved to begin with.

I myself noticed just a couple of things I wasn't 100% happy with (one was the on-screen text messages tendency to 'stick' to the screen), that was 2 & half years ago & my own todo list has been growing ever since! ;)
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
pc2099
Mostly Harmless
Mostly Harmless
Posts: 2
Joined: Fri May 27, 2011 1:17 pm

Re: Mouse control

Post by pc2099 »

Hi all,

Not sure if the inverting mouse option has been implemented or not - for me I badly needed the 'move mouse up - ship goes up' style and the only solution I found was this:

http://www.maf-soft.de/mafmouse/

Some guy has made specialised drivers that give you the option to flip the mouse at the driver level which works with Oolite (among other games) and solves this problem.

Hope this helps.

PC
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Mouse control

Post by Smivs »

Hi pc2099, and welcome to the friendliest Board this side of Riedquat.
I'm a 'stick man myself, but that will be useful to many of us, I'm sure.
Cheers.
Commander Smivs, the friendliest Gourd this side of Riedquat.
mcarans
---- E L I T E ----
---- E L I T E ----
Posts: 320
Joined: Sun Jun 20, 2010 6:00 pm

Re: Mouse control

Post by mcarans »

Hi pc2099,

My first post on these forums was on this subject.

In the end, in the absence of mouse inversion, I opted to buy an XBox 360 controller. I have described my setup (on Linux) here if you decide to go down the gamepad/joystick path:
http://wiki.alioth.net/index.php/Linux_ ... d_Gamepads

Cheers,
Mike
Post Reply