Skip to content

Commit

Permalink
fixed the mouse mod for arm
Browse files Browse the repository at this point in the history
  • Loading branch information
MFDGaming committed Apr 19, 2023
1 parent 8939b2d commit fcdc4bc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ninecraft/src/mods/mouse_input_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <ninecraft/patch/detours.h>
#include <ninecraft/dlfcn_stub.h>
#include <ninecraft/mods/mouse_input_mod.h>
#include <ninecraft/ninecraft_defs.h>

/*
This mod makes mouse control work more reliably.
Expand All @@ -16,10 +17,10 @@ struct turn_delta {
float x;
float y;
};
struct turn_delta controller_turn_input_get_turn_delta(void *turn_input) {
NINECRAFT_FLOAT_FUNC struct turn_delta controller_turn_input_get_turn_delta(void *turn_input) {
struct turn_delta ret;
ret.x = mouse_get_dx() * 0.4f;
ret.y = mouse_get_dy() * 0.4f;
ret.x = mouse_get_dx() * 0.3;
ret.y = mouse_get_dy() * 0.3;
return ret;
}

Expand Down

0 comments on commit fcdc4bc

Please sign in to comment.