Appearance
C64Key
cpp
#include <Peripherals/Keyboard/C64Key.h>cpp
struct C64KeyDefined in Peripherals/Keyboard/C64Key.h:21
Representation of a key on the C64 keyboard
Public Attributes
| Return | Name | Description |
|---|---|---|
isize | nr | Unique key identifier (0 .. 65). |
isize | row | Row index of this key in the keyboard matrix. |
isize | col | Column index of this key in the keyboard matrix. |
nr
cpp
isize nr = -1Defined in Peripherals/Keyboard/C64Key.h:25
Unique key identifier (0 .. 65).
row
cpp
isize row = -1Defined in Peripherals/Keyboard/C64Key.h:31
Row index of this key in the keyboard matrix.
NOTE
The RESTORE and the SHIFT LOCK key have no keyboard matrix representation.
col
cpp
isize col = -1Defined in Peripherals/Keyboard/C64Key.h:37
Column index of this key in the keyboard matrix.
NOTE
The RESTORE and the SHIFT LOCK key have no keyboard matrix representation.
Public Methods
| Return | Name | Description |
|---|---|---|
C64Key | Creates a key from its identifier (0 ... 65). | |
C64Key | Creates a key from its position in the keyboard matrix. |
C64Key
cpp
C64Key(isize nr = 0)Defined in Peripherals/Keyboard/C64Key.h:134
Creates a key from its identifier (0 ... 65).
C64Key
cpp
C64Key(isize row, isize col)Defined in Peripherals/Keyboard/C64Key.h:136
Creates a key from its position in the keyboard matrix.
Public Static Attributes
| Return | Name | Description |
|---|---|---|
const C64Key | del static | INST/DEL key. |
const C64Key | ret static | RETURN key. |
const C64Key | curLeftRight static | Cursor left/right key. |
const C64Key | F7F8 static | F7/F8 key. |
const C64Key | F1F2 static | F1/F2 key. |
const C64Key | F3F4 static | F3/F4 key. |
const C64Key | F5F6 static | F5/F6 key. |
const C64Key | curUpDown static | Cursor up/down key. |
const C64Key | digit3 static | 3 key |
const C64Key | W static | Key W. |
const C64Key | A static | Key A. |
const C64Key | digit4 static | 4 key |
const C64Key | Z static | Key Z. |
const C64Key | S static | Key S. |
const C64Key | E static | Key E. |
const C64Key | leftShift static | Left SHIFT key. |
const C64Key | digit5 static | 5 key |
const C64Key | R static | Key R. |
const C64Key | D static | Key D. |
const C64Key | digit6 static | 6 key |
const C64Key | C static | Key C. |
const C64Key | F static | Key F. |
const C64Key | T static | Key T. |
const C64Key | X static | Key X. |
const C64Key | digit7 static | 7 key |
const C64Key | Y static | Key Y. |
const C64Key | G static | Key G. |
const C64Key | digit8 static | 8 key |
const C64Key | B static | Key B. |
const C64Key | H static | Key H. |
const C64Key | U static | Key U. |
const C64Key | V static | Key V. |
const C64Key | digit9 static | 9 key |
const C64Key | I static | Key I. |
const C64Key | J static | Key J. |
const C64Key | digit0 static | 0 key |
const C64Key | M static | Key M. |
const C64Key | K static | Key K. |
const C64Key | O static | Key O. |
const C64Key | N static | Key N. |
const C64Key | plus static | * key |
const C64Key | P static | Key P. |
const C64Key | L static | Key L. |
const C64Key | minus static | * key |
const C64Key | period static | . key |
const C64Key | colon static | : key |
const C64Key | at static | @ key |
const C64Key | comma static | , key |
const C64Key | pound static | Pound sign key. |
const C64Key | asterisk static | * key |
const C64Key | semicolon static | ; key |
const C64Key | home static | CLR/HOME key. |
const C64Key | rightShift static | Right SHIFT key. |
const C64Key | equal static | = key |
const C64Key | upArrow static | Up arrow key. |
const C64Key | slash static | / key |
const C64Key | digit1 static | 1 key |
const C64Key | leftArrow static | Left arrow key. |
const C64Key | control static | CTRL key. |
const C64Key | digit2 static | 2 key |
const C64Key | space static | SPACE key. |
const C64Key | commodore static | Commodore key key. |
const C64Key | Q static | Key Q. |
const C64Key | runStop static | RUN/STOP key. |
const C64Key | restore static | RESTORE (not part of the keyboard matrix) key. |
const C64Key | shiftLock static | SHIFT LOCK (not part of the keyboard matrix) key. |
del
static
cpp
const C64Key delType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:45
INST/DEL key.
ret
static
cpp
const C64Key retType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:46
RETURN key.
curLeftRight
static
cpp
const C64Key curLeftRightType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:47
Cursor left/right key.
F7F8
static
cpp
const C64Key F7F8Type: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:48
F7/F8 key.
F1F2
static
cpp
const C64Key F1F2Type: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:49
F1/F2 key.
F3F4
static
cpp
const C64Key F3F4Type: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:50
F3/F4 key.
F5F6
static
cpp
const C64Key F5F6Type: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:51
F5/F6 key.
curUpDown
static
cpp
const C64Key curUpDownType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:52
Cursor up/down key.
digit3
static
cpp
const C64Key digit3Type: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:55
3 key
W
static
cpp
const C64Key WType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:56
Key W.
A
static
cpp
const C64Key AType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:57
Key A.
digit4
static
cpp
const C64Key digit4Type: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:58
4 key
Z
static
cpp
const C64Key ZType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:59
Key Z.
S
static
cpp
const C64Key SType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:60
Key S.
E
static
cpp
const C64Key EType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:61
Key E.
leftShift
static
cpp
const C64Key leftShiftType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:62
Left SHIFT key.
digit5
static
cpp
const C64Key digit5Type: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:65
5 key
R
static
cpp
const C64Key RType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:66
Key R.
D
static
cpp
const C64Key DType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:67
Key D.
digit6
static
cpp
const C64Key digit6Type: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:68
6 key
C
static
cpp
const C64Key CType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:69
Key C.
F
static
cpp
const C64Key FType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:70
Key F.
T
static
cpp
const C64Key TType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:71
Key T.
X
static
cpp
const C64Key XType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:72
Key X.
digit7
static
cpp
const C64Key digit7Type: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:75
7 key
Y
static
cpp
const C64Key YType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:76
Key Y.
G
static
cpp
const C64Key GType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:77
Key G.
digit8
static
cpp
const C64Key digit8Type: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:78
8 key
B
static
cpp
const C64Key BType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:79
Key B.
H
static
cpp
const C64Key HType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:80
Key H.
U
static
cpp
const C64Key UType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:81
Key U.
V
static
cpp
const C64Key VType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:82
Key V.
digit9
static
cpp
const C64Key digit9Type: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:85
9 key
I
static
cpp
const C64Key IType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:86
Key I.
J
static
cpp
const C64Key JType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:87
Key J.
digit0
static
cpp
const C64Key digit0Type: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:88
0 key
M
static
cpp
const C64Key MType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:89
Key M.
K
static
cpp
const C64Key KType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:90
Key K.
O
static
cpp
const C64Key OType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:91
Key O.
N
static
cpp
const C64Key NType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:92
Key N.
plus
static
cpp
const C64Key plusType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:95
- key
P
static
cpp
const C64Key PType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:96
Key P.
L
static
cpp
const C64Key LType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:97
Key L.
minus
static
cpp
const C64Key minusType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:98
- key
period
static
cpp
const C64Key periodType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:99
. key
colon
static
cpp
const C64Key colonType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:100
: key
at
static
cpp
const C64Key atType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:101
@ key
comma
static
cpp
const C64Key commaType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:102
, key
pound
static
cpp
const C64Key poundType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:105
Pound sign key.
asterisk
static
cpp
const C64Key asteriskType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:106
- key
semicolon
static
cpp
const C64Key semicolonType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:107
; key
home
static
cpp
const C64Key homeType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:108
CLR/HOME key.
rightShift
static
cpp
const C64Key rightShiftType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:109
Right SHIFT key.
equal
static
cpp
const C64Key equalType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:110
= key
upArrow
static
cpp
const C64Key upArrowType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:111
Up arrow key.
slash
static
cpp
const C64Key slashType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:112
/ key
digit1
static
cpp
const C64Key digit1Type: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:115
1 key
leftArrow
static
cpp
const C64Key leftArrowType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:116
Left arrow key.
control
static
cpp
const C64Key controlType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:117
CTRL key.
digit2
static
cpp
const C64Key digit2Type: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:118
2 key
space
static
cpp
const C64Key spaceType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:119
SPACE key.
commodore
static
cpp
const C64Key commodoreType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:120
Commodore key key.
Q
static
cpp
const C64Key QType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:121
Key Q.
runStop
static
cpp
const C64Key runStopType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:122
RUN/STOP key.
restore
static
cpp
const C64Key restoreType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:125
RESTORE (not part of the keyboard matrix) key.
shiftLock
static
cpp
const C64Key shiftLockType: const C64Key
Defined in Peripherals/Keyboard/C64Key.h:126
SHIFT LOCK (not part of the keyboard matrix) key.
Public Static Methods
| Return | Name | Description |
|---|---|---|
std::vector< C64Key > | translate static | Translates a character into a series of C64 keys. |
translate
static
cpp
static std::vector< C64Key > translate(char c)Defined in Peripherals/Keyboard/C64Key.h:148
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.