Navigation

    ViGEm Forums

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Twitter
    • GitHub
    • Discord

    ScpToolkit retrieving rumble values

    ScpToolkit
    1
    13
    525
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Flarum Bot
      Flarum Bot last edited by

      Originally posted by nefarius


      Sounds like a job for ViGEm or an API-hook. ScpToolkit would be an absolute overkill for this.

      1 Reply Last reply Reply Quote 0
      • Flarum Bot
        Flarum Bot last edited by

        Originally posted by Deathwalker9959


        Well i had also found this that i may could have used to retrieve the rumble values but i'm not sure can you confirm on this?

        DWORD XInputSetState(
          _In_    DWORD            dwUserIndex,
          _Inout_ XINPUT_VIBRATION *pVibration
        );
        
        DWORD XInputGetState(
          _In_  DWORD        dwUserIndex,
          _Out_ XINPUT_STATE *pState
        
        );
        
        
        
        1 Reply Last reply Reply Quote 0
        • Flarum Bot
          Flarum Bot last edited by

          Originally posted by nefarius


          This function is used by the process to inform the XInput sub system to send the rumble requests to the physical pad. So in short: yes. If you are familiar with API hooking you can like inject a custom DLL in the target game/process, hook this function, copy values from \*pVibration parameter and use them for your purposes. Then you wouldn't even need additional drivers.

          1 Reply Last reply Reply Quote 0
          • Flarum Bot
            Flarum Bot last edited by

            Originally posted by Deathwalker9959


            So in short term you're saying i can make a dll which i would inject to my target process that contained
            this function

            DWORD XInputSetState(
              _In_    DWORD            dwUserIndex,
              _Inout_ XINPUT_VIBRATION *pVibration
            );
            

            and then have them sent off to serial and etc

            1 Reply Last reply Reply Quote 0
            • Flarum Bot
              Flarum Bot last edited by

              Originally posted by nefarius


              Not quite, no. Please lookup API hooking and DLL injection on your favorite search engine, there is tons of information already out there like this small excerpt.

              Good luck.

              1 Reply Last reply Reply Quote 0
              • Flarum Bot
                Flarum Bot last edited by

                Originally posted by Deathwalker9959


                Thanks @nefarius hope to speak with you again

                1 Reply Last reply Reply Quote 0
                • Flarum Bot
                  Flarum Bot last edited by

                  Originally posted by nefarius


                  No problem.

                  By the way I also have my own utility for injecting DLLs and a project which heavily utilizes API hooking on Windows.

                  1 Reply Last reply Reply Quote 0
                  • Flarum Bot
                    Flarum Bot last edited by

                    Originally posted by evilC


                    Ooh, I had not noticed Indicum Supra before. I previously looked at DX9-Overlay-API, but it is DX9 only.
                    Is Indicum Supra for any version of DX?

                    1 Reply Last reply Reply Quote 0
                    • Flarum Bot
                      Flarum Bot last edited by

                      Originally posted by nefarius


                      @evilC yes, at least DX9, 10 and 11 is currently implemented. It's a tad out-of-date but I'm currently updating it.

                      1 Reply Last reply Reply Quote 0
                      • Flarum Bot
                        Flarum Bot last edited by

                        Originally posted by evilC


                        Awesome!
                        Will give it a go at some point and see if I can get it to work from AHK.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post