![]() |
Rune Engine
Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
|
Interface for getting input from the mouse. More...
#include <mouse.h>
Public Types | |
enum | Button { Left = 0, Right = 1, Middle = 2, XButton1 = 3, XButton2 = 4 } |
A button on the mouse that can be polled for input status. More... | |
Static Public Member Functions | |
static bool | isButtonPressed (rune::Mouse::Button button) |
static rune::Vec2 | getPosition (void) |
static void | setPosition (rune::Vec2 newPosition) |
Set the position of the cursor. | |
Interface for getting input from the mouse.
enum rune::Mouse::Button |
|
static |
Returns the position of the mouse in screen coordinates. Bottom left of screen is (0,0).
|
static |
Determines whether or not the button is being pressed at the time of function call.
button | The button to be looked at. |