VirtualC64 v5.0 beta
Commodore 64 Emulator
Loading...
Searching...
No Matches
C64Key Struct Reference

Representation of a key on the C64 keyboard. More...

#include <C64Key.h>

Static Public Member Functions

static std::vector< C64Keytranslate (char c)
 Translates a character into a series of C64 keys.
 

Public Attributes

isize nr = -1
 Unique key identifier (0 .
 
isize row = -1
 Row index of this key in the keyboard matrix.
 
isize col = -1
 Column index of this key in the keyboard matrix.
 

Static Public Attributes

static const C64Key ret
 Delete key.
 
static const C64Key curLeftRight
 Return key.
 

Detailed Description

Representation of a key on the C64 keyboard.

Member Function Documentation

◆ translate()

std::vector< C64Key > translate ( char c)
static

Translates a character into a series of C64 keys.

Returns
A vector of C64 keys.
Note
The return type is a vector as some characters additionally require the shift key to be pressed.

Member Data Documentation

◆ col

isize col = -1

Column index of this key in the keyboard matrix.

Note
The RESTORE and the SHIFT LOCK key have no keyboard matrix representation.

◆ nr

isize nr = -1

Unique key identifier (0 .

. 65)

◆ row

isize row = -1

Row index of this key in the keyboard matrix.

Note
The RESTORE and the SHIFT LOCK key have no keyboard matrix representation.

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