Skip to content

C64Key ​

cpp
#include <Peripherals/Keyboard/C64Key.h>
cpp
struct C64Key

Defined in Peripherals/Keyboard/C64Key.h:21

Representation of a key on the C64 keyboard

Public Attributes ​

ReturnNameDescription
isizenrUnique key identifier (0 .. 65).
isizerowRow index of this key in the keyboard matrix.
isizecolColumn index of this key in the keyboard matrix.

nr ​

cpp
isize nr = -1

Defined in Peripherals/Keyboard/C64Key.h:25

Unique key identifier (0 .. 65).


row ​

cpp
isize row = -1

Defined 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 = -1

Defined 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 ​

ReturnNameDescription
C64KeyCreates a key from its identifier (0 ... 65).
C64KeyCreates 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 ​

ReturnNameDescription
const C64Keydel staticINST/DEL key.
const C64Keyret staticRETURN key.
const C64KeycurLeftRight staticCursor left/right key.
const C64KeyF7F8 staticF7/F8 key.
const C64KeyF1F2 staticF1/F2 key.
const C64KeyF3F4 staticF3/F4 key.
const C64KeyF5F6 staticF5/F6 key.
const C64KeycurUpDown staticCursor up/down key.
const C64Keydigit3 static3 key
const C64KeyW staticKey W.
const C64KeyA staticKey A.
const C64Keydigit4 static4 key
const C64KeyZ staticKey Z.
const C64KeyS staticKey S.
const C64KeyE staticKey E.
const C64KeyleftShift staticLeft SHIFT key.
const C64Keydigit5 static5 key
const C64KeyR staticKey R.
const C64KeyD staticKey D.
const C64Keydigit6 static6 key
const C64KeyC staticKey C.
const C64KeyF staticKey F.
const C64KeyT staticKey T.
const C64KeyX staticKey X.
const C64Keydigit7 static7 key
const C64KeyY staticKey Y.
const C64KeyG staticKey G.
const C64Keydigit8 static8 key
const C64KeyB staticKey B.
const C64KeyH staticKey H.
const C64KeyU staticKey U.
const C64KeyV staticKey V.
const C64Keydigit9 static9 key
const C64KeyI staticKey I.
const C64KeyJ staticKey J.
const C64Keydigit0 static0 key
const C64KeyM staticKey M.
const C64KeyK staticKey K.
const C64KeyO staticKey O.
const C64KeyN staticKey N.
const C64Keyplus static* key
const C64KeyP staticKey P.
const C64KeyL staticKey L.
const C64Keyminus static* key
const C64Keyperiod static. key
const C64Keycolon static: key
const C64Keyat static@ key
const C64Keycomma static, key
const C64Keypound staticPound sign key.
const C64Keyasterisk static* key
const C64Keysemicolon static; key
const C64Keyhome staticCLR/HOME key.
const C64KeyrightShift staticRight SHIFT key.
const C64Keyequal static= key
const C64KeyupArrow staticUp arrow key.
const C64Keyslash static/ key
const C64Keydigit1 static1 key
const C64KeyleftArrow staticLeft arrow key.
const C64Keycontrol staticCTRL key.
const C64Keydigit2 static2 key
const C64Keyspace staticSPACE key.
const C64Keycommodore staticCommodore key key.
const C64KeyQ staticKey Q.
const C64KeyrunStop staticRUN/STOP key.
const C64Keyrestore staticRESTORE (not part of the keyboard matrix) key.
const C64KeyshiftLock staticSHIFT LOCK (not part of the keyboard matrix) key.

del ​

static

cpp
const C64Key del

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:45

INST/DEL key.


ret ​

static

cpp
const C64Key ret

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:46

RETURN key.


curLeftRight ​

static

cpp
const C64Key curLeftRight

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:47

Cursor left/right key.


F7F8 ​

static

cpp
const C64Key F7F8

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:48

F7/F8 key.


F1F2 ​

static

cpp
const C64Key F1F2

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:49

F1/F2 key.


F3F4 ​

static

cpp
const C64Key F3F4

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:50

F3/F4 key.


F5F6 ​

static

cpp
const C64Key F5F6

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:51

F5/F6 key.


curUpDown ​

static

cpp
const C64Key curUpDown

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:52

Cursor up/down key.


digit3 ​

static

cpp
const C64Key digit3

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:55

3 key


W ​

static

cpp
const C64Key W

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:56

Key W.


A ​

static

cpp
const C64Key A

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:57

Key A.


digit4 ​

static

cpp
const C64Key digit4

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:58

4 key


Z ​

static

cpp
const C64Key Z

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:59

Key Z.


S ​

static

cpp
const C64Key S

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:60

Key S.


E ​

static

cpp
const C64Key E

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:61

Key E.


leftShift ​

static

cpp
const C64Key leftShift

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:62

Left SHIFT key.


digit5 ​

static

cpp
const C64Key digit5

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:65

5 key


R ​

static

cpp
const C64Key R

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:66

Key R.


D ​

static

cpp
const C64Key D

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:67

Key D.


digit6 ​

static

cpp
const C64Key digit6

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:68

6 key


C ​

static

cpp
const C64Key C

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:69

Key C.


F ​

static

cpp
const C64Key F

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:70

Key F.


T ​

static

cpp
const C64Key T

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:71

Key T.


X ​

static

cpp
const C64Key X

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:72

Key X.


digit7 ​

static

cpp
const C64Key digit7

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:75

7 key


Y ​

static

cpp
const C64Key Y

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:76

Key Y.


G ​

static

cpp
const C64Key G

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:77

Key G.


digit8 ​

static

cpp
const C64Key digit8

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:78

8 key


B ​

static

cpp
const C64Key B

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:79

Key B.


H ​

static

cpp
const C64Key H

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:80

Key H.


U ​

static

cpp
const C64Key U

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:81

Key U.


V ​

static

cpp
const C64Key V

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:82

Key V.


digit9 ​

static

cpp
const C64Key digit9

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:85

9 key


I ​

static

cpp
const C64Key I

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:86

Key I.


J ​

static

cpp
const C64Key J

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:87

Key J.


digit0 ​

static

cpp
const C64Key digit0

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:88

0 key


M ​

static

cpp
const C64Key M

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:89

Key M.


K ​

static

cpp
const C64Key K

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:90

Key K.


O ​

static

cpp
const C64Key O

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:91

Key O.


N ​

static

cpp
const C64Key N

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:92

Key N.


plus ​

static

cpp
const C64Key plus

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:95

  • key

P ​

static

cpp
const C64Key P

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:96

Key P.


L ​

static

cpp
const C64Key L

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:97

Key L.


minus ​

static

cpp
const C64Key minus

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:98

  • key

period ​

static

cpp
const C64Key period

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:99

. key


colon ​

static

cpp
const C64Key colon

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:100

: key


at ​

static

cpp
const C64Key at

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:101

@ key


comma ​

static

cpp
const C64Key comma

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:102

, key


pound ​

static

cpp
const C64Key pound

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:105

Pound sign key.


asterisk ​

static

cpp
const C64Key asterisk

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:106

  • key

semicolon ​

static

cpp
const C64Key semicolon

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:107

; key


home ​

static

cpp
const C64Key home

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:108

CLR/HOME key.


rightShift ​

static

cpp
const C64Key rightShift

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:109

Right SHIFT key.


equal ​

static

cpp
const C64Key equal

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:110

= key


upArrow ​

static

cpp
const C64Key upArrow

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:111

Up arrow key.


slash ​

static

cpp
const C64Key slash

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:112

/ key


digit1 ​

static

cpp
const C64Key digit1

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:115

1 key


leftArrow ​

static

cpp
const C64Key leftArrow

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:116

Left arrow key.


control ​

static

cpp
const C64Key control

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:117

CTRL key.


digit2 ​

static

cpp
const C64Key digit2

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:118

2 key


space ​

static

cpp
const C64Key space

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:119

SPACE key.


commodore ​

static

cpp
const C64Key commodore

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:120

Commodore key key.


Q ​

static

cpp
const C64Key Q

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:121

Key Q.


runStop ​

static

cpp
const C64Key runStop

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:122

RUN/STOP key.


restore ​

static

cpp
const C64Key restore

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:125

RESTORE (not part of the keyboard matrix) key.


shiftLock ​

static

cpp
const C64Key shiftLock

Type: const C64Key

Defined in Peripherals/Keyboard/C64Key.h:126

SHIFT LOCK (not part of the keyboard matrix) key.

Public Static Methods ​

ReturnNameDescription
std::vector< C64Key >translate staticTranslates 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.