part way there :/ I'll leave vid_wgl and vid_mgl alone for now (probably move

that code to in_win.c)
This commit is contained in:
Bill Currie 2001-08-16 18:25:17 +00:00
parent 999c6a3b93
commit 98b7a9fdd5
2 changed files with 5 additions and 5 deletions

View file

@ -441,11 +441,11 @@ IN_MouseEvent (int mstate)
// perform button actions
for (i = 0; i < mouse_buttons; i++) {
if ((mstate & (1 << i)) && !(mouse_oldbuttonstate & (1 << i))) {
Key_Event (K_MOUSE1 + i, -1, true);
Key_Event (M_BUTTON1 + i, -1, true);
}
if (!(mstate & (1 << i)) && (mouse_oldbuttonstate & (1 << i))) {
Key_Event (K_MOUSE1 + i, -1, false);
Key_Event (M_BUTTON1 + i, -1, false);
}
}
@ -530,11 +530,11 @@ IN_LL_Commands (void)
// perform button actions
for (i = 0; i < mouse_buttons; i++) {
if ((mstate_di & (1 << i)) && !(mouse_oldbuttonstate & (1 << i))) {
Key_Event (K_MOUSE1 + i, -1, true);
Key_Event (M_BUTTON1 + i, -1, true);
}
if (!(mstate_di & (1 << i)) && (mouse_oldbuttonstate & (1 << i))) {
Key_Event (K_MOUSE1 + i, -1, false);
Key_Event (M_BUTTON1 + i, -1, false);
}
}

View file

@ -158,7 +158,7 @@ _JOY_Read (void)
void
JOY_Read (void)
{
int i, key_index;
int i;
DWORD buttonstate, povstate;
if (!joy_found) {