sdl2-compat icon indicating copy to clipboard operation
sdl2-compat copied to clipboard

Torchlight does not detect mouse input

Open GranMinigun opened this issue 1 year ago • 0 comments

Linux version of Torchlight was built against a prehistoric version of SDL2 (see, e.g., here), so it reads wrong event struct members and fails to retrieve mouse position and button presses properly. It is possible to patch the binary to make it work, but would it make sense to somehow handle that in the compat library?

For those who want to patch the game themselves, file Torchlight.bin.x86_64, 16 572 528 bytes. At AD:6734, replace 0C with 10; at AD:6754, replace 14 with 18; at AD:6758, replace 10 with 14; at AD:68B1, replace 0C with 14; at AD:6912, AD:692E, and AD:6944, replace 0D with 11. Camera zoom via mouse wheel is very slow.

GranMinigun avatar Mar 29 '24 18:03 GranMinigun