mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 15:50:20 +00:00
Cancel auto-run on left mouse double-click
This commit is contained in:
parent
d9fe774d5f
commit
c5a1fe927b
1 changed files with 3 additions and 0 deletions
|
|
@ -1009,6 +1009,9 @@ void CameraController::processMouseButton(const SDL_MouseButtonEvent& event) {
|
|||
|
||||
if (event.button == SDL_BUTTON_LEFT) {
|
||||
leftMouseDown = (event.state == SDL_PRESSED);
|
||||
if (event.state == SDL_PRESSED && event.clicks >= 2) {
|
||||
autoRunning = false;
|
||||
}
|
||||
}
|
||||
if (event.button == SDL_BUTTON_RIGHT) {
|
||||
rightMouseDown = (event.state == SDL_PRESSED);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue