* Is either mouse button currently pressed */
| 444 | * Is either mouse button currently pressed |
| 445 | */ |
| 446 | bool cWindow::isMouseButtonPressed_Global() const { |
| 447 | return (SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(SDL_BUTTON_LEFT)) || |
| 448 | (SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(SDL_BUTTON_RIGHT)); |
| 449 | } |
| 450 | |
| 451 | /** |
| 452 | * Is the window currently grabbed |