Study Dungeon  1.0.0
A group project for COSC345
Variables
key Namespace Reference

mapping of character codes recieved by getch on key press to their keyboard name for easy reference. More...

Variables

const int key_enter {13}
 
const int key_backspace {8}
 
const int key_esc {27}
 
const int key_space {32}
 
const int arrow_prefix {224}
 
const int numlock {0}
 
const int key_up {72}
 
const int key_down {80}
 
const int key_left {75}
 
const int key_right {77}
 
const std::string ESC {"\x1b"}
 

Detailed Description

mapping of character codes recieved by getch on key press to their keyboard name for easy reference.

Variable Documentation

◆ arrow_prefix

const int key::arrow_prefix {224}

key code for if an arrow has been pressed

◆ ESC

const std::string key::ESC {"\x1b"}

escape sequence for virtual terminal sequences

◆ key_backspace

const int key::key_backspace {8}

key code for backspace

◆ key_down

const int key::key_down {80}

key code for down arrow

◆ key_enter

const int key::key_enter {13}

key code for enter

◆ key_esc

const int key::key_esc {27}

key code for escape

◆ key_left

const int key::key_left {75}

key code for down arrow

◆ key_right

const int key::key_right {77}

key code for right arrow

◆ key_space

const int key::key_space {32}

key code for space

◆ key_up

const int key::key_up {72}

key code for up arrow

◆ numlock

const int key::numlock {0}

key code for if an arrow is pressed but numlock is on