Controllable icon indicating copy to clipboard operation
Controllable copied to clipboard

Vibrations no longer working on 0.10.1

Open jadenPete opened this issue 5 years ago • 5 comments

Hello, and thanks for all the work you've put into the new releases!

OS: Windows 10 64 bit Controller: Xbox Series X/S over Bluetooth Minecraft Version: 1.16.5 with Forge, OptiFine HD U G6, and WorldEdit Current Controllable version: 0.10.1 Last working Controllable version: 0.9.1

My controller no longer vibrates (e.g. when I raise my shield, eat, or fall), regardless of whether the setting is enabled. I think it may have to do with using GLFW to handle controller input.

EDIT: Apparently, GLFW doesn't support haptic feedback, though there is a pull request to add it.

jadenPete avatar Jan 29 '21 14:01 jadenPete

Unfortunately as mentioned GLFW does not support rumble. I knew this before switching to GLFW but thought it was a good trade off to reduce the file size of the mod. I may consider bringing back SDL until GLFW adds rumble support. (Especially since the first issue was posted in 2013 for rumble support)

MrCrayfish avatar Jan 31 '21 10:01 MrCrayfish

Though the reduced file size is nice, I would appreciate bringing back SDL (especially considering its other issues). Perhaps GLFW could be used in the future?

jadenPete avatar Jan 31 '21 17:01 jadenPete

The issue referenced was reported before I implemented GLFW. I have a version of Controllable that can optionally load SDL but I don't know how to distribute the required libraries (3 different files).

MrCrayfish avatar Feb 02 '21 11:02 MrCrayfish

Can you merge the libraries into the mod jar?

jadenPete avatar Feb 03 '21 20:02 jadenPete