mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-20 02:32:29 +00:00
fixed no mouse movement in in_svgalib.c
This commit is contained in:
parent
ba1408d56d
commit
4b19a1967d
1 changed files with 2 additions and 3 deletions
|
@ -61,7 +61,6 @@ static unsigned char scantokey[128];
|
||||||
static int mouse_buttons;
|
static int mouse_buttons;
|
||||||
static int mouse_buttonstate;
|
static int mouse_buttonstate;
|
||||||
static int mouse_oldbuttonstate;
|
static int mouse_oldbuttonstate;
|
||||||
static int mx, my;
|
|
||||||
|
|
||||||
static void IN_InitKeyboard (void);
|
static void IN_InitKeyboard (void);
|
||||||
static void IN_InitMouse (void);
|
static void IN_InitMouse (void);
|
||||||
|
@ -84,8 +83,8 @@ static void
|
||||||
mousehandler (int buttonstate, int dx, int dy, int dz, int drx, int dry, int drz)
|
mousehandler (int buttonstate, int dx, int dy, int dz, int drx, int dry, int drz)
|
||||||
{
|
{
|
||||||
mouse_buttonstate = buttonstate;
|
mouse_buttonstate = buttonstate;
|
||||||
mx += dx;
|
in_mouse_x += dx;
|
||||||
my += dy;
|
in_mouse_y += dy;
|
||||||
if (drx > 0) {
|
if (drx > 0) {
|
||||||
Key_Event (K_MWHEELUP, 0, 1);
|
Key_Event (K_MWHEELUP, 0, 1);
|
||||||
Key_Event (K_MWHEELUP, 0, 0);
|
Key_Event (K_MWHEELUP, 0, 0);
|
||||||
|
|
Loading…
Reference in a new issue