Results 1 to 3 of 3
  1. #1
    EmuTalk Member
    Join Date
    Apr 2017
    Posts
    2
    Mentioned
    0 Post(s)

    Question Change N-Rage XIpunt deadzone for the C-Buttons

    Hi,



    I'm using the latest version of the N-Rage plugin (2.5.3.9999) and as the title says I would like to change the deadzone for the C-buttons only.
    Currently, N-Rage XInput doesn't allow the user to change the deadzone of one stick alone (there's a deadzone slider on the 'Devices' tab but it doesn't seem to apply to the C-Buttons), and the default deadzone set for the C-Buttons is too high for FPS games with control style 1.2 (C-Buttons walk forward/backward and strafe left/right).

    I know a little bit of programming, however I'm not very familiar with C++ and PJ64 development. So, for those familiar with Project64 development I would like to ask if someone could point out for me which .cpp/.h file(s) and lines of code in the GitHub open source project allow me to change the default deadzone for the C-Buttons. From there I can mess around with constants' values (I guess they are constants, but idk) and build the 'PJ64_NRage.dll' on my own.
    Last edited by Legiaoday; July 7th, 2017 at 17:07.

  2. #2
    EmuTalk Member
    Join Date
    Apr 2017
    Posts
    2
    Mentioned
    0 Post(s)
    Alright, I decide to give it shot and I found the constant that mainly determines the deadzone of a stick when assigned to the C-Buttons.

    I don't think anyone (aside from myself) will ever need to change this, but if anyone is interested, you just need to change the value of #define BUTTON_ANALOG_VALUE on XInputController.h. The default value is 60, but lowering it to 10 did the trick for me.
    A slider would still be a better option, but I'm no good with GUIs.

  3. #3
    Nintendo emulation fanatic! jelbo's Avatar
    Join Date
    Aug 2002
    Posts
    131
    Mentioned
    1 Post(s)
    Legiaoday, can you share your compiled .dll?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •