Jump to content

GZDoom console command to toggle between analog stick sensitivity


lel

Recommended Posts

I originally posted this in the Source Ports forum, but I think this may be a better fit:

 

I'd like to bind a command to a controller button that will cycle through sensitivity values for aiming with the analog stick. For example, if the value is currently 20, change it to 40. If it's 40, change it to 70. If 70, change back to 20 and repeat the cycle. If I can't alternate between as many values as I'd like then I'd settle for simple binary toggle. Will a simple console command or config edit do this?

 

Actually, what would really be cool is to be able to use one of the triggers to change the sensitivity. As I pull the trigger, the sensitivity will gradually decrease until it reaches an absolute minimum value upon full trigger pull. This is so I can reduce controller sensitivity on-the-fly when I require precision aiming. After a gun fight, I just release the trigger to restore it to its default value.

Share this post


Link to post
2 hours ago, lel said:

I'd like to bind a command to a controller button that will cycle through sensitivity values for aiming with the analog stick. For example, if the value is currently 20, change it to 40. If it's 40, change it to 70. If 70, change back to 20 and repeat the cycle. If I can't alternate between as many values as I'd like then I'd settle for simple binary toggle. Will a simple console command or config edit do this?

Making a bind like this would usually be possible, but it looks like controller sensitivity settings in GZDoom are not exposed to the console, and thus as far as I can tell, there is unfortunately no way to make a bind that changes them.

Share this post


Link to post

Is there any kind of script I can create and add to my file list on launch? Perhaps writing the bind directly in the config file?

Share this post


Link to post

I just set the sensitivity for my Xbox controller manually inside of the options menu. I guess it literally just depends on the controllor you are using. Sensitivity and Deadzone react differently and Sensitivity on the Axis is very important as in if it is below 1.0 on a Movement axis then the Player Pawn cannot use full acceleration on that specific axis. So its best to leave the Axis Sensitivities at 1.0 and only adjust the main sensitivity. 

After that, GZDoom will just save the configuration when you leave or close the game. 

This aint the answer youre looking for but the Axis Sensitivity is important for Movement of the player specifically so thats why I brought it up at all.

Share this post


Link to post
  • 2 weeks later...
On 11/6/2023 at 11:35 PM, lel said:

Is there any kind of script I can create and add to my file list on launch? Perhaps writing the bind directly in the config file?

You could try this mod I just posted; It may not be exactly what you wanted, but it's probably still better than nothing:

 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...