renakunisaki / csl-joystickcameracontrol Goto Github PK
View Code? Open in Web Editor NEWCities: Skylines mod to control camera with joystick
License: MIT License
Cities: Skylines mod to control camera with joystick
License: MIT License
It would be great to have some way to disconnect auxiliary mice from the OS so that they can be used as inputs without affecting the mouse cursor.
In Linux, this is a fairly simple matter of running xinput disable "device name here"
(and enable
to re-attach it afterward). No idea how to do it in Windows or Mac though.
Unfortunately, Unity doesn't just let us read every axis; that would make far too much sense. Instead it requires the game to name some axes, and then query them by name, and those are the only ones you can use.
Fortunately, the game defines five axes (in addition to the mouse inputs), apparently used for a built-in but hidden function that does exactly what this mod does (but not as well). To use any others though, we need to find a workaround that works on all platforms.
It seems the game ignores all attempts to change the camera height and insists on following terrain, even in "free camera" mode. Must find a workaround.
I have a Logitech G13 that has it's thumb joystick that I'm trying to use with this mod.
However, Unity Input Manager readout in the Devices tab is showing
Horizontal: 80 to 90
Vertical: -80 to -100
when the joystick is left alone dead center.
As a result, my game is always flying off to the far bottom right of the map without me touching anything. Trying to get it to stay still would require me to position the joystick somewhere halfway between extreme top-left position.
I've tried repeatedly to calibrate it in Windows' Game Controller window, but it looks like it isn't a Windows or device problem as the calibration tests all show the joystick is still dead accurate and reliable and I still can use it outside the game without issue.
I suspect that the game or Unity is thinking the device is reporting a single range per X & Y axis or something of that sort. Is this something wrong with Unity Input Manager or something I have to manually configure for it to recognize the device axis reporting correctly?
Sometimes the graphics for the checkboxes, sliders, etc don't appear if you open the options during gameplay. (On title screen seems to be fine.) Probably it's using wrong graphics which aren't always loaded.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.