MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / isMouseButtonPressed_Global

Method isMouseButtonPressed_Global

Source/Window.cpp:446–449  ·  view source on GitHub ↗

* Is either mouse button currently pressed */

Source from the content-addressed store, hash-verified

444 * Is either mouse button currently pressed
445 */
446bool 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

Callers 1

Mouse_Cursor_HandleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected