CPKeyboardKey

org.cosplay.CPKeyboardKey
See theCPKeyboardKey companion object
enum CPKeyboardKey(val id: String, val isPrintable: Boolean, val ch: Char, val rawCodes: Seq[Char]*) extends HashMap[String, AnyRef]

Enumeration of all supported keyboard keys.

Remapped Keys

The following keystrokes are automatically re-mapped:

  • CTRL+H is mapped to CPKeyboardKey.KEY_BACKSPACE.
  • CTRL+I is mapped to CPKeyboardKey.KEY_TAB.
  • CTRL+M is mapped to CPKeyboardKey.KEY_ENTER.

NOTE: CTRL+H, CTRL+I and CTRL+M will not be detected as-is, and you should use their conversions instead. Note that even-though this enumeration provides constants for CTRL+H, CTRL+I and CTRL+M they will never be returned to the scene objects since they would always be automatically remapped. This is the limitation of the ANSI terminals, i.e. CTRL+M generates the same ANSI code as Enter key press.

Reserved Keys

There are three reserved key strokes that are used by the game engine itself and therefore NOT available to the game. These keystrokes are intercepted before frame update and not propagated to the scene object context:

  • CTRL+Q - toggles in-game FPS overlay
  • CTRL+L - opens GUI-based loc viewer & debugger
  • F12 - saves current frame screenshot as REXPaint *.xp image to the current working folder.

Attributes

See also

CPKeyboardEvent.key

Companion
object
Source
CPKeyboardKey.scala
Graph
Supertypes
trait Enum
trait Product
class HashMap[String, AnyRef]
trait Serializable
trait StrictOptimizedMapOps[String, AnyRef, HashMap, HashMap[String, AnyRef]]
trait StrictOptimizedIterableOps[(String, AnyRef), Iterable, HashMap[String, AnyRef]]
class AbstractMap[String, AnyRef]
trait Map[String, AnyRef]
trait MapOps[String, AnyRef, HashMap, HashMap[String, AnyRef]]
trait Shrinkable[String]
trait Builder[(String, AnyRef), HashMap[String, AnyRef]]
trait Growable[(String, AnyRef)]
trait Clearable
trait Cloneable[HashMap[String, AnyRef]]
trait Cloneable
trait Iterable[(String, AnyRef)]
class AbstractMap[String, AnyRef]
trait Map[String, AnyRef]
trait Equals
trait MapFactoryDefaults[String, AnyRef, HashMap, Iterable]
trait MapOps[String, AnyRef, HashMap, HashMap[String, AnyRef]]
trait PartialFunction[String, AnyRef]
trait String => AnyRef
class AbstractIterable[(String, AnyRef)]
trait Iterable[(String, AnyRef)]
trait IterableFactoryDefaults[(String, AnyRef), Iterable]
trait IterableOps[(String, AnyRef), Iterable, HashMap[String, AnyRef]]
trait IterableOnceOps[(String, AnyRef), Iterable, HashMap[String, AnyRef]]
trait IterableOnce[(String, AnyRef)]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

case case KEY_0 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_1 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_2 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_3 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_4 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_5 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_6 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_7 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_8 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_9 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_AMPERSAND extends CPKeyboardKey

'&' key press.

'&' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_AT extends CPKeyboardKey

'@' key press.

'@' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_BACKSPACE extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_BACK_QUOTE extends CPKeyboardKey

'' key press.

'' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_BACK_SLASH extends CPKeyboardKey

'\\' key press.

'\\' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_CIRCUMFLEX extends CPKeyboardKey

'^' key press.

'^' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_COLON extends CPKeyboardKey

':' key press.

':' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_COMMA extends CPKeyboardKey

',' key press.

',' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_A extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_B extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_C extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_D extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_DOWN extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_E extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_F extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_G extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_H extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_I extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_J extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_K extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_L extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_LEFT extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_M extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_N extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_O extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_P extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_Q extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_R extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_RIGHT extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_S extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_T extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_U extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_UP extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_V extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_W extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_X extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_Y extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_CTRL_Z extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_DEL extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_DOLLAR extends CPKeyboardKey

'$' key press.

'$' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_DOWN extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_DQUOTE extends CPKeyboardKey

'"' key press.

'"' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_END extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_ENTER extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_EQUAL extends CPKeyboardKey

'=' key press.

'=' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_ESC extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_EXCL extends CPKeyboardKey

'!' key press.

'!' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_F1 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_F10 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_F11 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_F12 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_F2 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_F3 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_F4 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_F5 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_F6 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_F7 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_F8 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_F9 extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_GT extends CPKeyboardKey

'>' key press.

'>' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_HOME extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_INS extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LBRKT extends CPKeyboardKey

'[' key press.

'[' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_LCBRKT extends CPKeyboardKey

'{' key press.

'{' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_LEFT extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_A extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_B extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_C extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_D extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_E extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_F extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_G extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_H extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_I extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_J extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_K extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_L extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_M extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_N extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_O extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_P extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_Q extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_R extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_S extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_T extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_U extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_V extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_W extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_X extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_Y extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LO_Z extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_LPAR extends CPKeyboardKey

'(' key press.

'(' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_LT extends CPKeyboardKey

'<' key press.

'<' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_MINUS extends CPKeyboardKey

'-' key press.

'-' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_MULTIPLY extends CPKeyboardKey

'*' key press.

'*' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_NUMBER_SIGN extends CPKeyboardKey

'#' key press.

'#' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_PERCENT extends CPKeyboardKey

'%' key press.

'%' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_PERIOD extends CPKeyboardKey

'.' key press.

'.' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_PGDN extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_PGUP extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_PLUS extends CPKeyboardKey

'+' key press.

'+' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_QUESTION extends CPKeyboardKey

'?' key press.

'?' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_RBRKT extends CPKeyboardKey

']' key press.

']' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_RCBRKT extends CPKeyboardKey

'}' key press.

'}' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_RIGHT extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_RPAR extends CPKeyboardKey

')' key press.

')' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_SEMICOLON extends CPKeyboardKey

';' key press.

';' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_SLASH extends CPKeyboardKey

'/' key press.

'/' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_SPACE extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_SQUOTE extends CPKeyboardKey

'''' key press.

'''' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_TAB extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_TILDE extends CPKeyboardKey

'~' key press.

'~' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_UNDERSCORE extends CPKeyboardKey

'_' key press.

'_' key press.

Attributes

Source
CPKeyboardKey.scala
case case KEY_UNKNOWN extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_A extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_B extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_C extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_D extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_E extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_F extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_G extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_H extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_I extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_J extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_K extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_L extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_M extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_N extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_O extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_P extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_Q extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_R extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_S extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_T extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_U extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_V extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_W extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_X extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_Y extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_UP_Z extends CPKeyboardKey

Attributes

Source
CPKeyboardKey.scala
case case KEY_VERT extends CPKeyboardKey

'|' key press.

'|' key press.

Attributes

Source
CPKeyboardKey.scala