This wiki is out of date, use the continuation of this wiki instead

Scancodes

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 22:52, 25 June 2007 (edit)
87.177.23.239 (Talk)

← Previous diff
Current revision (19:31, 20 June 2008) (edit) (undo)
Zigo (Talk | contribs)
(Notes)
 
(4 intermediate revisions not shown.)
Line 1: Line 1:
-=== Definition ===+[[Category:general]]
-----+[[Category:constantcategories]]
-Scancodes are used as parameters for the [[key]]() function.+
-=== List ===+== Definition ==
-----+Scancodes are used to identify keys. This is used in the function [[key]]() and the [[global variable]] [[scan_code]]. Note that the global variable [[ascii]] is very different from this.
 + 
 +== List ==
 +{|
 +| ''Constant'' || - ''Value''
 +|-
 +| _ESC || - 1
 +|-
 +| _1 || - 2
 +|-
 +| _2 || - 3
 +|-
 +| _3 || - 4
 +|-
 +| _4 || - 5
 +|-
 +| _5 || - 6
 +|-
 +| _6 || - 7
 +|-
 +| _7 || - 8
 +|-
 +| _8 || - 9
 +|-
 +| _9 || - 10
 +|-
 +| _0 || - 11
 +|-
 +| _MINUS || - 12
 +|-
 +| _PLUS || - 13
 +|-
 +| _BACKSPACE || - 14
 +|-
 +| _TAB || - 15
 +|-
 +| _Q || - 16
 +|-
 +| _W || - 17
 +|-
 +| _E || - 18
 +|-
 +| _R || - 19
 +|-
 +| _T || - 20
 +|-
 +| _Y || - 21
 +|-
 +| _U || - 22
 +|-
 +| _I || - 23
 +|-
 +| _O || - 24
 +|-
 +| _P || - 25
 +|-
 +| _L_BRACHET || - 26
 +|-
 +| _R_BRACHET || - 27
 +|-
 +| _ENTER || - 28
 +|-
 +| _C_ENTER || - 28
 +|-
 +| _CONTROL || - 29
 +|-
 +| _A || - 30
 +|-
 +| _S || - 31
 +|-
 +| _D || - 32
 +|-
 +| _F || - 33
 +|-
 +| _G || - 34
 +|-
 +| _H || - 35
 +|-
 +| _J || - 36
 +|-
 +| _K || - 37
 +|-
 +| _L || - 38
 +|-
 +| _SEMICOLON || - 39
 +|-
 +| _APOSTROPHE || - 40
 +|-
 +| _WAVE || - 41
 +|-
 +| _L_SHIFT || - 42
 +|-
 +| _BACKSLASH || - 43
 +|-
 +| _Z || - 44
 +|-
 +| _X || - 45
 +|-
 +| _C || - 46
 +|-
 +| _V || - 47
 +|-
 +| _B || - 48
 +|-
 +| _N || - 49
 +|-
 +| _M || - 50
 +|-
 +| _COMMA || - 51
 +|-
 +| _POINT || - 52
 +|-
 +| _SLASH || - 53
 +|-
 +| _C_BACKSLASH || - 53
 +|-
 +| _R_SHIFT || - 54
 +|-
 +| _C_ASTERISK || - 55
 +|-
 +| _PRN_SCR || - 55
 +|-
 +| _ALT || - 56
 +|-
 +| _SPACE || - 57
 +|-
 +| _CAPS_LOCK || - 58
 +|-
 +| _F1 || - 59
 +|-
 +| _F2 || - 60
 +|-
 +| _F3 || - 61
 +|-
 +| _F4 || - 62
 +|-
 +| _F5 || - 63
 +|-
 +| _F6 || - 64
 +|-
 +| _F7 || - 65
 +|-
 +| _F8 || - 66
 +|-
 +| _F9 || - 67
 +|-
 +| _F10 || - 68
 +|-
 +| _NUM_LOCK || - 69
 +|-
 +| _SCROLL_LOCK || - 70
 +|-
 +| _HOME || - 71
 +|-
 +| _C_HOME || - 71
 +|-
 +| _UP || - 72
 +|-
 +| _C_UP || - 72
 +|-
 +| _PGUP || - 73
 +|-
 +| _C_PGUP || - 73
 +|-
 +| _C_MINUS || - 74
 +|-
 +| _LEFT || - 75
 +|-
 +| _C_LEFT || - 75
 +|-
 +| _C_CENTER || - 76
 +|-
 +| _RIGHT || - 77
 +|-
 +| _C_RIGHT || - 77
 +|-
 +| _C_PLUS || - 78
 +|-
 +| _END || - 79
 +|-
 +| _C_END || - 79
 +|-
 +| _DOWN || - 80
 +|-
 +| _C_DOWN || - 80
 +|-
 +| _PGDN || - 81
 +|-
 +| _C_PGDN || - 81
 +|-
 +| _INS || - 82
 +|-
 +| _C_INS || - 82
 +|-
 +| _DEL || - 83
 +|-
 +| _C_DEL || - 83
 +|-
 +| _F11 || - 87
 +|-
 +| _F12 || - 88
 +|-
 +| _LESS || - 89
 +|-
 +| _EQUALS || - 90
 +|-
 +| _GREATER || - 91
 +|-
 +| _ASTERISK || - 92
 +|-
 +| _R_ALT || - 93
 +|-
 +| _R_CONTROL || - 94
 +|-
 +| _L_ALT || - 95
 +|-
 +| _L_CONTROL || - 96
 +|-
 +| _MENU || - 97
 +|-
 +| _L_WINDOWS || - 98
 +|-
 +| _R_WINDOWS || - 99
 +|}
 + 
 +== Notes ==
 +Before [[Fenix]] [[0.93]] the constant _R_WINDOWS had the value 98. To fix this bug, use the following code:
<pre> <pre>
-_esc +#define _R_WINDOWS 99
-_F1 +
-_F2 +
-_F3 +
-_F4 +
-_F5 +
-_F6 +
-_F7 +
-_F8 +
-_F9 +
-_F10 +
-_F11 +
-_F12 +
-_prn_scr +
-_scroll_lock +
-_wave +
-_0 +
-_9+
-_minus +
-_plus +
-_backspace +
-_tab +
-_l_brachet +
-_r_brachet +
-_enter +
-_caps_lock +
-_semicolon +
-_apostrophe +
-_backslash +
-_l_shift +
-_comma +
-_point +
-_slash +
-_r_shift +
-_control +
-_alt +
-_space +
-_ins +
-_home +
-_pgup +
-_del +
-_end +
-_pgdn +
-_num_lock +
-_c_backslash +
-_c_asterisk +
-_c_minus +
-_c_home +
-_c_up +
-_c_pgup +
-_c_left +
-_c_center +
-_c_right +
-_c_end +
-_c_down +
-_c_pgdn +
-_c_ins +
-_c_del +
-_c_plus +
-_c_enter +
-_A - _Z +
-_a - _z +
-_left +
-_up +
-_right +
-_down+
</pre> </pre>

Current revision


[edit] Definition

Scancodes are used to identify keys. This is used in the function key() and the global variable scan_code. Note that the global variable ascii is very different from this.

[edit] List

Constant - Value
_ESC - 1
_1 - 2
_2 - 3
_3 - 4
_4 - 5
_5 - 6
_6 - 7
_7 - 8
_8 - 9
_9 - 10
_0 - 11
_MINUS - 12
_PLUS - 13
_BACKSPACE - 14
_TAB - 15
_Q - 16
_W - 17
_E - 18
_R - 19
_T - 20
_Y - 21
_U - 22
_I - 23
_O - 24
_P - 25
_L_BRACHET - 26
_R_BRACHET - 27
_ENTER - 28
_C_ENTER - 28
_CONTROL - 29
_A - 30
_S - 31
_D - 32
_F - 33
_G - 34
_H - 35
_J - 36
_K - 37
_L - 38
_SEMICOLON - 39
_APOSTROPHE - 40
_WAVE - 41
_L_SHIFT - 42
_BACKSLASH - 43
_Z - 44
_X - 45
_C - 46
_V - 47
_B - 48
_N - 49
_M - 50
_COMMA - 51
_POINT - 52
_SLASH - 53
_C_BACKSLASH - 53
_R_SHIFT - 54
_C_ASTERISK - 55
_PRN_SCR - 55
_ALT - 56
_SPACE - 57
_CAPS_LOCK - 58
_F1 - 59
_F2 - 60
_F3 - 61
_F4 - 62
_F5 - 63
_F6 - 64
_F7 - 65
_F8 - 66
_F9 - 67
_F10 - 68
_NUM_LOCK - 69
_SCROLL_LOCK - 70
_HOME - 71
_C_HOME - 71
_UP - 72
_C_UP - 72
_PGUP - 73
_C_PGUP - 73
_C_MINUS - 74
_LEFT - 75
_C_LEFT - 75
_C_CENTER - 76
_RIGHT - 77
_C_RIGHT - 77
_C_PLUS - 78
_END - 79
_C_END - 79
_DOWN - 80
_C_DOWN - 80
_PGDN - 81
_C_PGDN - 81
_INS - 82
_C_INS - 82
_DEL - 83
_C_DEL - 83
_F11 - 87
_F12 - 88
_LESS - 89
_EQUALS - 90
_GREATER - 91
_ASTERISK - 92
_R_ALT - 93
_R_CONTROL - 94
_L_ALT - 95
_L_CONTROL - 96
_MENU - 97
_L_WINDOWS - 98
_R_WINDOWS - 99

[edit] Notes

Before Fenix 0.93 the constant _R_WINDOWS had the value 98. To fix this bug, use the following code:

#define _R_WINDOWS 99
Personal tools