lantus / devilution-nx

Diablo for the Nintendo Switch
The Unlicense
859 stars 61 forks source link

Allow right stick to control pointer speed, allow right mouse click with ZL #1

Closed rsn8887 closed 5 years ago

rsn8887 commented 5 years ago

This should improve the right stick pointer control. The pointer should move faster the further the stick is actuated.

To change the overall pointer speed, the variable "slowdown" here https://github.com/rsn8887/devilution-nx/blob/4c5cc1d55cfa543ad6a0708e0cc735be7a6f3639/SourceX/miniwin/misc_msg.cpp#L439 can be adjusted:

I also mapped right mouse click to ZL button, and moved the heal potion hotkey to A.

I cannot test the code myself because I get a compilation error "3rdParty/StormLib/src/StormPort.h:137:12: fatal error: sys/mman.h: No such file or directory". Maybe the compilation instructions are missing a step?

But it is simple enough so it should just work.