Difference between revisions of "Keycode Reference"

From WikiPrizm
Jump to navigationJump to search
m (Removed hexadecimal from the program section)
(Move some contents of Keyboard here)
Line 78: Line 78:
 
* [[GetKeyWait_OS]]
 
* [[GetKeyWait_OS]]
 
* [[Keyboard_PutKeycode]]
 
* [[Keyboard_PutKeycode]]
 +
 +
The two tables in this section show the same information, presented in different ways.
 +
 +
{| class="wikitable"
 +
|+
 +
!colspan=8|Matrix Hexadecimal Codes
 +
|-
 +
| F1
 +
| F2
 +
| F3
 +
| F4
 +
| F5
 +
| F6
 +
|
 +
! 0A
 +
|-
 +
| SHIFT
 +
| OPTN
 +
| VARS
 +
| MENU
 +
| ←
 +
| ↑
 +
|
 +
! 09
 +
|-
 +
| ALPHA
 +
| x^2
 +
| ^
 +
| EXIT
 +
| ↓
 +
| →
 +
|
 +
! 08
 +
|-
 +
| X,θ,T
 +
| log
 +
| ln
 +
| sin
 +
| cos
 +
| tan
 +
|
 +
! 07
 +
|-
 +
| a b/c
 +
| F↔D
 +
| (
 +
| )
 +
| ,
 +
| →
 +
|
 +
! 06
 +
|-
 +
| 7
 +
| 8
 +
| 9
 +
| DEL
 +
|
 +
|
 +
|
 +
! 05
 +
|-
 +
| 4
 +
| 5
 +
| 6
 +
| ×
 +
| ÷
 +
|
 +
|
 +
! 04
 +
|-
 +
| 1
 +
| 2
 +
| 3
 +
| +
 +
| -
 +
|
 +
|
 +
! 03
 +
|-
 +
| 0
 +
| .
 +
| EXP
 +
| (-)
 +
| EXE
 +
|
 +
|
 +
! 02
 +
|-
 +
|
 +
|
 +
|
 +
|
 +
|
 +
|
 +
| AC/On
 +
! 01
 +
|-
 +
! 07
 +
! 06
 +
! 05
 +
! 04
 +
! 03
 +
! 02
 +
! 01
 +
|
 +
|}
 
<div style="clear:both;"></div>
 
<div style="clear:both;"></div>
 
== Program Key Codes ==
 
== Program Key Codes ==

Revision as of 10:11, 11 February 2015

The Prizm's syscalls and related keyboard functions use different methods of representing keys. These values vary in size and are tied to specific groups of syscalls. The Reading Input tutorial page has information on such syscalls and their uses.

Matrix Key Codes

Matrix Hexadecimal Codes
F1
070A
F2
060A
F3
050A
F4
040A
F5
030A
F6
020A
Shift
0709
Optn
0609
Vars
0509
Menu
0409
0209

0309
 
0208

0308
Alpha
0708
𝓍²
0608
^
0508
Exit
0408
X,θ,T
0707
log
0607
ln
0507
sin
0407
cos
0307
tan
0207
ab/c
0706
F↔D
0606
(
0506
)
0406
,
0306

0206
7
0705
8
0605
9
0505
DEL
0405
AC/ON
0101
4
0704
5
0604
6
0504
×
0404
÷
0304
1
0703
2
0603
3
0503
+
0403
-
0303
0
0702
.
0602
EXP
0502
(‒)
0402
EXE
0302

The matrix key codes are a 2 byte column/row pair specified as 0xCCRR. These correlate to the column and row of the keyboard matrix that the key is located at. The following functions use this key format:

The two tables in this section show the same information, presented in different ways.

Matrix Hexadecimal Codes
F1 F2 F3 F4 F5 F6 0A
SHIFT OPTN VARS MENU 09
ALPHA x^2 ^ EXIT 08
X,θ,T log ln sin cos tan 07
a b/c F↔D ( ) , 06
7 8 9 DEL 05
4 5 6 × ÷ 04
1 2 3 + - 03
0 . EXP (-) EXE 02
AC/On 01
07 06 05 04 03 02 01

Program Key Codes

Program Codes
F1
79
F2
69
F3
59
F4
49
F5
39
F6
29
Shift
78
Optn
68
Vars
56
Menu
46
28

38
 
27

37
Alpha
77
𝓍²
67
^
57
Exit
47
X,θ,T
76
log
66
ln
56
sin
46
cos
36
tan
26
ab/c
75
F↔D
65
(
55
)
45
,
35

25
7
74
8
64
9
54
DEL
44
AC/ON
10
4
73
5
63
6
53
×
43
÷
33
1
72
2
62
3
52
+
42
-
32
0
71
.
61
EXP
51
(‒)
41
EXE
31

The key codes here are decimal values made up of the column and row as CR. The following functions use this key format:

Character Codes

TODO: Add 3 tables

Character codes are not directly mapped to the physical keys on the keyboard. The values use the state of key modifiers to return a value pertaining to the specific function of a key (Exit's code is one code whereas Shift+Exit is a different). The following syscalls use these codes:

Direct Keyboard Matrix

TODO