playMaker

Author Topic: XInput Rumble  (Read 1253 times)

MABManZ

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 126
    • View Profile
    • MABManZ.com
XInput Rumble
« on: September 10, 2015, 10:59:02 PM »
Could not find much documentation online for getting proper rumble functioning in Unity (even without Playmaker), so decided to tinker around with the XInput example scene.

I was able to make an XInput Rumble action that doesn't rely on a 3rd party input system such as InControl or ReWired.

- Controls left motor (low frequency) and right motor (high frequency) independently
- Option to disable rumble w/ a bool
- Set to only activate on Windows platform to prevent fsm's hanging/crashing on the unsupported library

Requires XInputDotNetPure.dll and XInputInterface.dll in the project (also attached) You can also download from their GitHub Releases