Bomberman
Public Types | Static Public Member Functions | List of all members
RAY::Controller::Mouse Class Reference

Mouse event manager. More...

#include <Mouse.hpp>

Collaboration diagram for RAY::Controller::Mouse:

Public Types

typedef ::MouseButton Button
 

Static Public Member Functions

static bool isPressed (Button)
 
static bool isDown (Button)
 
static bool isReleased (Button)
 
static bool isUp (Button)
 
static RAY::Vector2 getCursorPosition (void)
 

Detailed Description

Mouse event manager.

Member Typedef Documentation

◆ Button

typedef ::MouseButton RAY::Controller::Mouse::Button

Member Function Documentation

◆ getCursorPosition()

RAY::Vector2 RAY::Controller::Mouse::getCursorPosition ( void  )
static
Returns
A 2D vector holding the current position of the cursor

◆ isDown()

bool RAY::Controller::Mouse::isDown ( Button  button)
static
Returns
true if Key is down on the keyboard
Parameters
KeyThe keycode of the key

◆ isPressed()

bool RAY::Controller::Mouse::isPressed ( Button  button)
static
Returns
true if Key is pressed on the keyboard
Parameters
KeyThe keycode of the key

◆ isReleased()

bool RAY::Controller::Mouse::isReleased ( Button  button)
static
Returns
true if Key is released on the keyboard
Parameters
KeyThe keycode of the key

◆ isUp()

bool RAY::Controller::Mouse::isUp ( Button  button)
static
Returns
true if Key is up on the keyboard
Parameters
KeyThe keycode of the key

The documentation for this class was generated from the following files: