ASGE  3.2.0
Simple Game Framework in GL
ASGE::MOUSE Namespace Reference

Enumerations

enum class  CursorMode { NORMAL , HIDDEN , LOCKED }
 

Variables

constexpr int BUTTON_RELEASED = 0
 
constexpr int BUTTON_PRESSED = 1
 
constexpr int MOUSE_BTN1 = 0
 
constexpr int MOUSE_BTN2 = 1
 
constexpr int MOUSE_BTN3 = 2
 
constexpr int MOUSE_BTN4 = 3
 
constexpr int MOUSE_BTN5 = 4
 

Detailed Description

mouse button mappings

Enumeration Type Documentation

◆ CursorMode

mouse cursor modes

Used to control the cursors behaviour and its visibility.

Enumerator
NORMAL 

Enables the cursor. The cursor will be shown and the user is free to leave the window and interact with other applications.

HIDDEN 

Hides the cursor. The cursor is no longer shown when positioned over the active game window, however, upon leaving the window the cursor will be shown, allowing interaction outside of the game window.

LOCKED 

Locks and hides the cursor. Simply, the cursor will be hidden and locked to the window. The user will not be able to leave the windowed area.

Definition at line 31 of file Mouse.hpp.

Variable Documentation

◆ BUTTON_PRESSED

constexpr int ASGE::MOUSE::BUTTON_PRESSED = 1
constexpr

Mouse Btn Clicked. The mouse button was clicked.

Definition at line 49 of file Mouse.hpp.

◆ BUTTON_RELEASED

constexpr int ASGE::MOUSE::BUTTON_RELEASED = 0
constexpr

Mouse Btn Release. The mouse button was released.

Definition at line 48 of file Mouse.hpp.

◆ MOUSE_BTN1

constexpr int ASGE::MOUSE::MOUSE_BTN1 = 0
constexpr

Mouse Button 1.

Definition at line 50 of file Mouse.hpp.

◆ MOUSE_BTN2

constexpr int ASGE::MOUSE::MOUSE_BTN2 = 1
constexpr

Mouse Button 2.

Definition at line 51 of file Mouse.hpp.

◆ MOUSE_BTN3

constexpr int ASGE::MOUSE::MOUSE_BTN3 = 2
constexpr

Mouse Button 3.

Definition at line 52 of file Mouse.hpp.

◆ MOUSE_BTN4

constexpr int ASGE::MOUSE::MOUSE_BTN4 = 3
constexpr

Mouse Button 4.

Definition at line 53 of file Mouse.hpp.

◆ MOUSE_BTN5

constexpr int ASGE::MOUSE::MOUSE_BTN5 = 4
constexpr

Mouse Button 5.

Definition at line 54 of file Mouse.hpp.