Skip to content

JoyShockLibrary 3.0

Latest
Compare
Choose a tag to compare
@JibbSmart JibbSmart released this 02 Apr 16:04
· 7 commits to master since this release

JoyShockLibrary reads DualSense, DualShock 4, JoyCon, and Pro Controller input. Use this to add native support for these controllers to your games.

Version 3 improves thread safety and JslConnectDevices behaviour so it can be called without resetting current connections. It also improves auto calibration and adds features to help with getting high resolution, useful gyro input. It also includes a bunch of new quality of life features.

Look for these new functions in the README:

  • JslSetGyroSpace (gyro options that adapt to player's preferred controller orientation)
  • JslGetAndFlushAccumulatedGyro (get complete gyro motion even when polling at low rates)
  • JslSetConnectCallback
  • JslSetDisconnectCallback
  • JslGetTimeSinceLastUpdate
  • JslGetControllerInfoAndSettings
  • JslGetAutoCalibrationStatus

Also see the description for JslConnectDevices to see how you can use it when you detect new devices are connected (eg WM_DEVICECHANGE on Windows).

This update also addresses bugs in the gravity and quaternion calculations with some devices.