Author Topic: Mac mouse acceleration  (Read 5926 times)

0 Members and 1 Guest are viewing this topic.

Offline Admiral LSD

  • 27
  • Shorter of breath and one day closer to death
    • http://adphq.dyndns.org
Mac mouse acceleration
Has any more work been done on this? I hunted around but all I could find was an old Xt build that taylor has since removed and none of the other builds I've tried seem to recognise the "mouse_test" option. I want to be able to play FS2 on my MacBook but not being able to keep up with so much as the Amazon drones in the training missions is starting to annoy me  :mad:
00:19  * Snail cockslaps BotenAnna
00:19 -!- Snail was kicked from #hard-light by BotenAnna [Don't touch me there! RAPE!!!]

15:36 <@Stealth_T1g4h> MASSIVE PENIS IN YOUR ASS Linux

I normally enjoy your pornographic website... - Stealth
Get Internet Explorer!

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Mac mouse acceleration
Seriously, if someone knows how to fix his problem, please do it.  All he does on IRC is complain about it :)
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Mac mouse acceleration
Did "mouse_test" actually work?  I don't really remember, and the fact that I apparently never committed the code makes me think that something was wrong with it.  I ripped it out of later Xt builds as well which makes me sure that something was wrong.

I still have a diff of what that code actually did, so I can add it at any time, but I'm not going to unless it was confirmed to work properly.

 

Offline Admiral LSD

  • 27
  • Shorter of breath and one day closer to death
    • http://adphq.dyndns.org
Re: Mac mouse acceleration
Did "mouse_test" actually work?  I don't really remember, and the fact that I apparently never committed the code makes me think that something was wrong with it.  I ripped it out of later Xt builds as well which makes me sure that something was wrong.

I still have a diff of what that code actually did, so I can add it at any time, but I'm not going to unless it was confirmed to work properly.

Well, none of the builds I tried recognised it as a valid parameter and the one build you linked to that claimed to actually support it is no longer on your icculus space so I haven't been able to test it to tell you whether it works or not.
00:19  * Snail cockslaps BotenAnna
00:19 -!- Snail was kicked from #hard-light by BotenAnna [Don't touch me there! RAPE!!!]

15:36 <@Stealth_T1g4h> MASSIVE PENIS IN YOUR ASS Linux

I normally enjoy your pornographic website... - Stealth
Get Internet Explorer!

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Mac mouse acceleration
Hmm, ok.  I'm going to release a new set of Linux/OS X builds tonight/tomorrow, as soon as I commit the normal map code, so I'll just include the mouse_test code in the OS X build and that will give you something recent to test with.  I'm not going to bother adding the option though, I'll just make it default.

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor

 

Offline Admiral LSD

  • 27
  • Shorter of breath and one day closer to death
    • http://adphq.dyndns.org
Re: Mac mouse acceleration
That didn't help. In fact, I think it's made things slightly worse :(
00:19  * Snail cockslaps BotenAnna
00:19 -!- Snail was kicked from #hard-light by BotenAnna [Don't touch me there! RAPE!!!]

15:36 <@Stealth_T1g4h> MASSIVE PENIS IN YOUR ASS Linux

I normally enjoy your pornographic website... - Stealth
Get Internet Explorer!

 

Offline Admiral LSD

  • 27
  • Shorter of breath and one day closer to death
    • http://adphq.dyndns.org
Re: Mac mouse acceleration
I did a little more digging into this and it led me to this:

http://developer.apple.com/samplecode/SetMouseAcclSample/index.html

It's a code sample showing how the scaling curve can be set, reset and adjusted from within a program. Variations of it are how other games get around the acceleration issue. I don't know how or even if it can be implemented neatly in FSO but hopefully it's a shot in the right general direction.
00:19  * Snail cockslaps BotenAnna
00:19 -!- Snail was kicked from #hard-light by BotenAnna [Don't touch me there! RAPE!!!]

15:36 <@Stealth_T1g4h> MASSIVE PENIS IN YOUR ASS Linux

I normally enjoy your pornographic website... - Stealth
Get Internet Explorer!

 

Offline Admiral LSD

  • 27
  • Shorter of breath and one day closer to death
    • http://adphq.dyndns.org
Re: Mac mouse acceleration
This may be a better example, it's from a real-world implementation (ioquake3).

The code you need to be looking at is in between the #ifdef MACOS_X_ACCELERATION_HACK lines.

[attachment stolen by Slimey Goober]
00:19  * Snail cockslaps BotenAnna
00:19 -!- Snail was kicked from #hard-light by BotenAnna [Don't touch me there! RAPE!!!]

15:36 <@Stealth_T1g4h> MASSIVE PENIS IN YOUR ASS Linux

I normally enjoy your pornographic website... - Stealth
Get Internet Explorer!

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Mac mouse acceleration
The fix(es) in the test builds was originally based on that ioquake3 code actually.  Not a single person has said that it worked however.  The original test builds included 4 different possible fixes for the mouse problem (3 cmdline options to activate the separate fixes, and a 4th option to enable all of them).  Although the acceleration fix did address a reported problem, it isn't a speed change.  It seems to be related too much to user settings and/or hardware, making it rather subjective as to what the "fix" would actually be.  I even considered a complete rewrite of the mouse input code as being one possible fix, though I hate to think of that as actually being the only/best way to fix the problem.

I have never really been able to recreate the problem on my Mac (in an obvious way) so it's pretty difficult to just guess at a fix.  What we are going to need is for a person with the problem to create a working fix and then submit a patch.  Assuming that it doesn't manage to break anything else then we'll add it to SVN.  Any volunteers? :)

 

Offline Admiral LSD

  • 27
  • Shorter of breath and one day closer to death
    • http://adphq.dyndns.org
Are you (or anyone else not seeming to experience this problem for that matter) using any 3rd party mouse drivers or any utilities that may be altering/disabling the mouse acceleration outside of individual programs. I'm using the standard OS X drivers but in my research I noticed a couple of references to Microsofts mouse drivers being able to disable the curve. There are also one or two other utilities that claim to be able to disable it (USB Overdrive seeming to be the most common even though it's USD$20 payware). I don't want to disable the curve, just prevent it interfering with games. I know it's possible as every other game I've ran so far hasn't given me a lick of trouble, it's only FSO that's giving me grief.
00:19  * Snail cockslaps BotenAnna
00:19 -!- Snail was kicked from #hard-light by BotenAnna [Don't touch me there! RAPE!!!]

15:36 <@Stealth_T1g4h> MASSIVE PENIS IN YOUR ASS Linux

I normally enjoy your pornographic website... - Stealth
Get Internet Explorer!

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
I've gotten FSO running on a few older macs lately, a couple of G3s and a G4.  I've not used any special software on them, and I've run it on 10.3.9, 10.4 and 10.5.  I've used the same old iMac blue keyboard and 1 button Pro mouse on all of them, and haven't seen this issue.  So no luck here, sorry.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
I'm not using anything special, just the standard Apple mouse with no special software or drivers.  But like I said, the build that you reported as not working did disable acceleration as per the docs from Apple, the ioquake code, and any other sources that I could find on the subject.  So that pretty much leaves just two possibilities: 1) accel simply isn't the main cause of the problem, or 2) the code fix just didn't work for you for some reason (perhaps a safety check failed or something).  You reported that it possibly made things worse though, so if that's the case then the previous fix must have worked code wise, it just didn't produce the desired results.

 

Offline Admiral LSD

  • 27
  • Shorter of breath and one day closer to death
    • http://adphq.dyndns.org
OK, this is weird - but potentially helpful. I compiled ioquake3 for kicks to see what would happen and it turns out the code doesn't work right there either. I get the same sluggish input I see in FSO even though ioq3 seems to indicate the scaling hacks are active (the cvars for them are set to 1). Another Q3 binary I have - which I assume was simply compiled from the regular Q3 source (which disables the acceleration but in a different and supposedly deprecated manner) - is fine. The Q3 binary that works also doesn't seem to respond to turning the cvars for the various scaling hacks off either. Very weird...
00:19  * Snail cockslaps BotenAnna
00:19 -!- Snail was kicked from #hard-light by BotenAnna [Don't touch me there! RAPE!!!]

15:36 <@Stealth_T1g4h> MASSIVE PENIS IN YOUR ASS Linux

I normally enjoy your pornographic website... - Stealth
Get Internet Explorer!

 

Offline Admiral LSD

  • 27
  • Shorter of breath and one day closer to death
    • http://adphq.dyndns.org
This is probably nothing but it may be something: I noticed that in ioq3 the mouse input is laggy everywhere: in the game menus and in the game itself but in FSO the UI input is fine. It's only once you get into the game that it becomes laggy and unplayable. Is the UI in FSO doing anything different to the actual game?
00:19  * Snail cockslaps BotenAnna
00:19 -!- Snail was kicked from #hard-light by BotenAnna [Don't touch me there! RAPE!!!]

15:36 <@Stealth_T1g4h> MASSIVE PENIS IN YOUR ASS Linux

I normally enjoy your pornographic website... - Stealth
Get Internet Explorer!

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: Mac mouse acceleration
I take this still an issue?

And also that is the bug discussed in some length in IRC ?

If so... then those who have encountered this issue could you please report it here...

Including some information like FS2Open build number, hardware, type of mouse
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline Echelon9

  • 210
Re: Mac mouse acceleration
If so... then those who have encountered this issue could you please report it here...

Including some information like FS2Open build number, hardware, type of mouse
Admiral LSD if you're able to give me enough specific information to reproduce the bug I can look at it, but so far all my testing has been unable to recreate anything similar to the problem being reported here.

 

Offline neoterran

  • 210
Re: Mac mouse acceleration
I found that I could solve this problem by using one of those really small mice they give away for free at trade shows and development conferences. It's a sun java mouse actually :D. It must sample at a really high rate or something because it gives much faster turning that the normal mice i use with the Mac do. So... that's my solution.
Official Taylor Fan Club Member.
Chief Grognard.
"How much code could a coder code if a coder could code code?"

 

Offline Admiral LSD

  • 27
  • Shorter of breath and one day closer to death
    • http://adphq.dyndns.org
Re: Mac mouse acceleration
OK, the problem is that the sensitivity/acceleration/whatever is reversed: short quick movements are fine but long sweeping movements are as slow as molasses. This is on a Mid 2007 MacBook2,1 (2.16 Core 2 Duo, 945GM chipset) with various mice, OS and FSO versions. I'm fairly certain it's something to do with SDL input (I've found reports of and witnessed similar behaviour in other SDL games as I noted before) but haven't been able to find out exactly what. The other oddityt is, as I also noted before, it only happens while you're in-game. Outside the actual game and on the UI menus and such, it's perfectly fine. The other SDL games I mentioned were slow even in the game UI.
00:19  * Snail cockslaps BotenAnna
00:19 -!- Snail was kicked from #hard-light by BotenAnna [Don't touch me there! RAPE!!!]

15:36 <@Stealth_T1g4h> MASSIVE PENIS IN YOUR ASS Linux

I normally enjoy your pornographic website... - Stealth
Get Internet Explorer!