Skip to content

Commit

Permalink
svn r6499
Browse files Browse the repository at this point in the history
  • Loading branch information
sauerbraten committed Apr 27, 2021
1 parent 249444a commit bb231c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/engine/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,9 @@ void checkinput()
case SDL_BUTTON_RIGHT: processkey(-3, event.button.state==SDL_PRESSED); break;
case SDL_BUTTON_X1: processkey(-6, event.button.state==SDL_PRESSED); break;
case SDL_BUTTON_X2: processkey(-7, event.button.state==SDL_PRESSED); break;
case SDL_BUTTON_X2 + 1: processkey(-10, event.button.state==SDL_PRESSED); break;
case SDL_BUTTON_X2 + 2: processkey(-11, event.button.state==SDL_PRESSED); break;
case SDL_BUTTON_X2 + 3: processkey(-12, event.button.state==SDL_PRESSED); break;
}
//lasttype = event.type;
//lastbut = event.button.button;
Expand All @@ -1018,6 +1021,8 @@ void checkinput()
case SDL_MOUSEWHEEL:
if(event.wheel.y > 0) { processkey(-4, true); processkey(-4, false); }
else if(event.wheel.y < 0) { processkey(-5, true); processkey(-5, false); }
else if(event.wheel.x > 0) { processkey(-8, true); processkey(-8, false); }
else if(event.wheel.x < 0) { processkey(-9, true); processkey(-9, false); }
break;
}
}
Expand Down

0 comments on commit bb231c0

Please sign in to comment.