| 491 | } |
| 492 | |
| 493 | static int getMouseButtonFromEvent(SDL_Event* e) { |
| 494 | if (e->button.button == SDL_BUTTON_LEFT) { |
| 495 | return 0; |
| 496 | } else if (e->button.button == SDL_BUTTON_MIDDLE) { |
| 497 | return 2; |
| 498 | } else if (e->button.button == SDL_BUTTON_RIGHT) { |
| 499 | return 1; |
| 500 | } |
| 501 | return 0; |
| 502 | } |
| 503 | |
| 504 | // return true to continue processing for custom handlers |
| 505 | // |
no outgoing calls
no test coverage detected