mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
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:
parent
999c6a3b93
commit
98b7a9fdd5
2 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -158,7 +158,7 @@ _JOY_Read (void)
|
|||
void
|
||||
JOY_Read (void)
|
||||
{
|
||||
int i, key_index;
|
||||
int i;
|
||||
DWORD buttonstate, povstate;
|
||||
|
||||
if (!joy_found) {
|
||||
|
|
Loading…
Reference in a new issue