RimWorld

RimWorld

Not enough ratings
Middle-Mouse Panning Fix for Linux [A16]
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
6.803 KB
7 Mar, 2017 @ 5:27pm
10 Mar, 2017 @ 9:54am
7 Change Notes ( view )

Subscribe to download
Middle-Mouse Panning Fix for Linux [A16]

Description
EDIT: This version is deprecated. Unsubscribe from this mod and subscribe to the A17 version instead. (I lost the file needed to update this mod--hence the separate mod page for A17)

On the Ludeon forums[ludeon.com] I was able to isolate this to a bug in MouseDrag events in Linux Unity version 5.4.1f1. This is unlikely to be fixed in RimWorld until they update the version of Unity they're building against since it would involve targeting the Linux platform and the specific Unity version to work around the incorrect mouse button codes in the MouseDrag event args, but I'll keep this updated in case they implement a workaround for this.

Original Description:
In recent builds I haven't been able to use the middle mouse button to pan the camera in Linux.

All this mod does is add custom handling to pan the map while the middle mouse button is held down. To avoid potential issues, this mod will only activate itself if being run on Linux.

This will work fine with any existing game and shouldn't have any compatibility issues with any other mods.

For those interested, the source code can be found here: https://bitbucket.org/CephalopodDarius/rimworldmousepanninglinux

Note: This does not work on the worldmap--only the game map.
3 Comments
CephalopodDarius  [author] 10 Jun, 2017 @ 6:15pm 
I lost the file that allows me to update this mod, so I've created an updated version for A17 as a separate mod.
CephalopodDarius  [author] 16 Mar, 2017 @ 10:56pm 
I'm glad it's helpful! It was stopping me from playing the game, so once I built a workaround I wanted to share it
shockMob 12 Mar, 2017 @ 11:03am 
This is so awesome! Thanks!