Camera pan without middle click

Discussion in 'Support!' started by Comaleaf, March 7, 2015.

  1. Comaleaf

    Comaleaf New Member

    Messages:
    4
    Likes Received:
    1
    Is there a way to rebind the camera pan control from the middle mouse button to another button? My mouse does not let me send middle click (as the middle click controls a function of the mouse and the drivers to turn off this feature don't function on my operating system). It also prevents the game being played with a trackpad.

    Other controls seem to be able to be remapped but not this one for some reason, as far as I've been able to see.
  2. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Yeah, the mouse buttons can't be remapped in PA unfortunately. That can only be done through the mouse software. Though some mouse software allows it on a per-application basis.

    I find it a bit odd that the mouse would deny the middle mouse button to be used by default and needing special drivers to turn that off? That's bizarre. What mouse is that?
  3. Comaleaf

    Comaleaf New Member

    Messages:
    4
    Likes Received:
    1
    It's a Logitech MX Revolution Bluetooth. The mouse wheel has a hardware actuator that changes the scrolling mode between a free scrolling mode with no friction and a typical mouse wheel scrolling mode that clicks round. I've probably not explained that very well!

    For some reason the default behaviour is to override the middle mouse click to toggle this mode, although I don't know why in practice you'd ever want to be toggling that mode whilst you use the mouse.

    Thanks for the quick answer. I guess I'll have to go hunt for some OS X software that will emulate the click.
  4. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    It is hardcoded in media/ui/main/game/live_game/live_game.js around line 2815
    A mod could add another key by calling beginControlCamera() and endControlCamera(), the code in line 2815 live_game.js suggests the easiest way to get "the holodeck that the mouse is on" is to add a mouse listener to $('holodeck') and then use a keylistener to toggel begin/end on keydown/ keyup

    The hardest part would be to add in a config for which key to use. I guess this would be best as a part of hotbuild2.

    @proeleert ;)
    proeleert likes this.
  5. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    I don't know if this helps, but I found this for the Mac:
    (source)

    That should work with the OS X drivers from here, maybe?

    Otherwise, you'd need the modding as cola_colin suggested.
  6. planktum

    planktum Post Master General

    Messages:
    1,060
    Likes Received:
    510
    I'm pretty sure I have piece of software which will help you with the remapping... I'll try and find it and will let you know so you can download.
  7. Comaleaf

    Comaleaf New Member

    Messages:
    4
    Likes Received:
    1
    Thanks for looking into it. Unfortunately the Logitech OS X drivers don't support the bluetooth version of the mouse, just the 2.4GHz version. :(

    This seems promising, and I had a go of it but I'm not really familiar with PA modding and the documentation seems a bit sparse, haha. My first attempt managed to stop all mouse buttons from working and my second attempt did nothing at all :p I'll have to see about getting a debugger working.

    That would be great. I looked into the app called 'BetterTouchTool' and although it does let you send middle mouse clicks with other keys, it doesn't let you emulate holding down the middle mouse button and dragging, so you can't use it for panning. I asked the developer and he said he might add that feature soon. So, yes, I'd be very interested if you know about another app that might do it.

    Thanks again everyone,
    Lauren
  8. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    In the PA directory there is a coherent directory that has a debugger.exe
  9. Comaleaf

    Comaleaf New Member

    Messages:
    4
    Likes Received:
    1
    Well I found a solution and I thought I'd post it here for anyone who has a similar issue. There's an app called USB Overdrive (I can't post the link as I'm a new user, but Google should be able to find it) which provides third-party drivers for mice/keyboards on OS X. And using this you can assign any mouse key (including the one actually on my mouse..) to send middle click! Yay!

    Thanks everyone

    :)
    DeathByDenim likes this.
  10. planktum

    planktum Post Master General

    Messages:
    1,060
    Likes Received:
    510
    Try this software.

    http://download.cnet.com/X-Mouse-Button-Control/3000-20432_4-75362562.html

    http://www.highrez.co.uk/downloads/XMouseButtonControl.htm

Share This Page