Mari0 1.6 (Hugo's Unofficial) Joystick Sensitivity
Posted: 07 Sep 2014, 18:18
So... I wanted to play some local coop with my nephew, and I'd love to have some sensitivity controls to make more smooth movements. We asked Maurice for this a while ago, but he said it was impossible because the angles in joysticks were controlled by the position you were holding it, so it couldn't be configurated.
BUT, what Maurice didn't thought is that you can make the pointer move from it's current position to the poisition you're holding in a certain speed, not only instantaneously. So, I decided to add this option. It was quite easy, actually, so modders shouldn't have problems adding this to their mods or Maurice to SE or whatever.
You can set the sensibility in the controls settings, from 0 to 1, 0 being instantaneously moving (like it actually is, but you don't want that, do you?) and 1 being 1 second to move between points. It is actually really slow, so set a value between these two :)
For modders (and Maurice): I only modified the main.lua, mario.lua, menu.lua and variables.lua files. There weren't MANY changes, so it should be easy to identify. Just a thing: in variables.lua I only added a variable "joystickmaxsensibility = 1", so you don't need to go crazy trying to find what I changed. In main.lua I only edited the loadconfig, defaultconfig and saveconfig, nothing else.
DOWNLOAD
PS.: If anyone is worried about compatibility, it doesn't affects mods nor vanilla Mari0...
BUT, what Maurice didn't thought is that you can make the pointer move from it's current position to the poisition you're holding in a certain speed, not only instantaneously. So, I decided to add this option. It was quite easy, actually, so modders shouldn't have problems adding this to their mods or Maurice to SE or whatever.
You can set the sensibility in the controls settings, from 0 to 1, 0 being instantaneously moving (like it actually is, but you don't want that, do you?) and 1 being 1 second to move between points. It is actually really slow, so set a value between these two :)
For modders (and Maurice): I only modified the main.lua, mario.lua, menu.lua and variables.lua files. There weren't MANY changes, so it should be easy to identify. Just a thing: in variables.lua I only added a variable "joystickmaxsensibility = 1", so you don't need to go crazy trying to find what I changed. In main.lua I only edited the loadconfig, defaultconfig and saveconfig, nothing else.
DOWNLOAD
PS.: If anyone is worried about compatibility, it doesn't affects mods nor vanilla Mari0...