OWL

OWL - Open Windowing Library


Mouse

mouse is an element of Window. It’s used for handling mouse events.

It has 6 functions:

Example of usage:

std::cout << "mouse wheel rotation = " << window.mouse.getWheelRotation() << "\n";
std::cout << "Right button state = " << window.mouse.isButtonPressed(window.mouse.Right) << "\n";
std::cout << "Is cursor visible = " << window.mouse.isVisible() << "\n";
std::cout << "mouse position = {" << window.mouse.getPosition().x << ", " << window.mouse.getPosition().y << "}\n"