version 1.47.8.1.2.4, 2005/10/09 17:50:19 |
version 1.48, 2004/05/13 15:00:27 |
|
|
#define KS_Cmd_ContrastUp 0xf429 |
#define KS_Cmd_ContrastUp 0xf429 |
#define KS_Cmd_ContrastDown 0xf42a |
#define KS_Cmd_ContrastDown 0xf42a |
#define KS_Cmd_ContrastRotate 0xf42b |
#define KS_Cmd_ContrastRotate 0xf42b |
#define KS_Cmd_ScrollFastUp 0xf42c |
|
#define KS_Cmd_ScrollFastDown 0xf42d |
|
#define KS_Cmd_ScrollSlowUp 0xf42e |
|
#define KS_Cmd_ScrollSlowDown 0xf42f |
|
|
|
/* |
/* |
* Group 5 (internal) |
* Group 5 (internal) |
|
|
#define KB_ENCODING(e) ((e) & 0x0000ff00) |
#define KB_ENCODING(e) ((e) & 0x0000ff00) |
#define KB_VARIANT(e) ((e) & 0xffff00ff) |
#define KB_VARIANT(e) ((e) & 0xffff00ff) |
|
|
|
#define KB_USER 0x0100 |
|
#define KB_US 0x0200 |
|
#define KB_DE 0x0300 |
|
#define KB_DK 0x0400 |
|
#define KB_IT 0x0500 |
|
#define KB_FR 0x0600 |
|
#define KB_UK 0x0700 |
|
#define KB_JP 0x0800 |
|
#define KB_SV 0x0900 |
|
#define KB_NO 0x0a00 |
|
#define KB_ES 0x0b00 |
|
#define KB_HU 0x0c00 |
|
#define KB_PL 0x0d00 |
|
#define KB_RU 0x0e00 |
|
#define KB_SG 0x0f00 |
|
#define KB_SF 0x1000 |
|
#define KB_PT 0x1100 |
|
#define KB_UA 0x1200 |
|
#define KB_BE 0x1300 |
|
|
#define KB_NODEAD 0x0001 |
#define KB_NODEAD 0x0001 |
#define KB_DECLK 0x0002 /* DEC LKnnn layout */ |
#define KB_DECLK 0x0002 /* DEC LKnnn layout */ |
#define KB_LK401 0x0004 /* DEC LK401 instead LK201 */ |
#define KB_LK401 0x0004 /* DEC LK401 instead LK201 */ |
|
|
#define KB_IOPENER 0x0040 /* f1-f12 -> ESC,f1-f11 */ |
#define KB_IOPENER 0x0040 /* f1-f12 -> ESC,f1-f11 */ |
#define KB_MACHDEP 0x0080 /* machine dependent */ |
#define KB_MACHDEP 0x0080 /* machine dependent */ |
|
|
/* |
#define KB_ENCTAB \ |
* Define keyboard type and texts all in one table. |
{ KB_USER, "user" }, \ |
* Include default variants (and their text form) for sysinst. |
{ KB_US, "us" }, \ |
* Sort (loosely) by country name. |
{ KB_DE, "de" }, \ |
*/ |
{ KB_DK, "dk" }, \ |
#define KB_ENC_FUN(action) \ |
{ KB_IT, "it" }, \ |
action(KB_USER, 0, 0x0100, "user", , "User-defined") \ |
{ KB_FR, "fr" }, \ |
action(KB_US, 0, 0x0200, "us", , "US-English") \ |
{ KB_UK, "uk" }, \ |
action(KB_UK, 0, 0x0700, "uk", , "UK-English") \ |
{ KB_JP, "jp" }, \ |
action(KB_BE, 0, 0x1300, "be", , "Belgian") \ |
{ KB_SV, "sv" }, \ |
action(KB_DK, 0, 0x0400, "dk", , "Danish") \ |
{ KB_SV, "fi" }, \ |
action(KB_FI, 0, 0x0900, "fi", , "Finnish") \ |
{ KB_NO, "no" }, \ |
action(KB_FR, 0, 0x0600, "fr", , "French") \ |
{ KB_ES, "es" }, \ |
action(KB_DE, KB_NODEAD,0x0300, "de",".nodead", "German") \ |
{ KB_HU, "hu" }, \ |
action(KB_HU, 0, 0x0c00, "hu", , "Hungarian") \ |
{ KB_PL, "pl" }, \ |
action(KB_IT, 0, 0x0500, "it", , "Italian") \ |
{ KB_RU, "ru" }, \ |
action(KB_JP, 0, 0x0800, "jp", , "Japanese") \ |
{ KB_SG, "sg" }, \ |
action(KB_NO, 0, 0x0a00, "no", , "Norwegian") \ |
{ KB_SF, "sf" }, \ |
action(KB_PL, 0, 0x0d00, "pl", , "Polish") \ |
{ KB_PT, "pt" }, \ |
action(KB_PT, 0, 0x1100, "pt", , "Portugese") \ |
{ KB_UA, "ua" }, \ |
action(KB_RU, 0, 0x0e00, "ru", , "Russian") \ |
{ KB_BE, "be" } |
action(KB_ES, 0, 0x0b00, "es", , "Spanish") \ |
|
action(KB_SV, 0, 0x0900, "sv", , "Swedish") \ |
|
action(KB_SF, 0, 0x1000, "sf", , "Swiss French") \ |
|
action(KB_SG, 0, 0x0f00, "sg", , "Swiss German") \ |
|
action(KB_UA, 0, 0x1200, "ua", , "Ukrainian") |
|
|
|
/* Define all the KB_xx numeric values using above table */ |
|
#define KBF_ENUM(tag, tagf, value, cc, ccf, country) tag=value, |
|
enum { KB_ENC_FUN(KBF_ENUM) KB_NEXT=0x1400 }; |
|
|
|
/* Define list of KB_xxx and country codes for array initialisation */ |
|
#define KBF_ENCTAB(tag, tagf, value, cc, ccf, country) { tag, cc }, |
|
#define KB_ENCTAB KB_ENC_FUN(KBF_ENCTAB) |
|
|
|
#define KB_VARTAB \ |
#define KB_VARTAB \ |
{ KB_NODEAD, "nodead" }, \ |
{ KB_NODEAD, "nodead" }, \ |