Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve mouse handling #15

Closed
szapp opened this issue Aug 16, 2016 · 2 comments
Closed

Improve mouse handling #15

szapp opened this issue Aug 16, 2016 · 2 comments

Comments

@szapp
Copy link
Owner

szapp commented Aug 16, 2016

Instead of relying on the cursor package of LeGo (which is just another dependency), the mouse handling can be done more straight-forward.

Change this line

var int deltaX; deltaX = mulf(mkf(Cursor_RelX), MEM_ReadInt(Cursor_sX)); // Get mouse change in x

into

var int deltaX; deltaX = mulf(mkf(MEM_ReadInt(mouseDeltaX)), MEM_ReadInt(mouseSensX)); // Get mouse change in x

And add these constants:

const int mouseSensX = 9019720; //0x89A148
const int mouseDeltaX = 9246300; //0x8D165C
@szapp
Copy link
Owner Author

szapp commented Aug 16, 2016

This was actually never fixed. It does not seem to work. Instead free aiming will now just have to depend on LeGo_Cursor

@szapp
Copy link
Owner Author

szapp commented Oct 13, 2016

Fix #11, #14, #15, #16 and clean up code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant