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.
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. AtAD:6734
, replace0C
with10
; atAD:6754
, replace14
with18
; atAD:6758
, replace10
with14
; atAD:68B1
, replace0C
with14
; atAD:6912
,AD:692E
, andAD:6944
, replace0D
with11
. Camera zoom via mouse wheel is very slow.