Differences
This shows you the differences between two versions of the page.
| en:ibm:prcp:kbd:xlat [2014/05/16 18:37] – created valerius | en:ibm:prcp:kbd:xlat [2016/09/15 03:09] (current) – valerius | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ==== KbdXlate ==== | ==== KbdXlate ==== | ||
| - | **Bindings**: | + | **Bindings**: |
| + | |||
| + | This call translates scan codes with shift states into ASCII codes. | ||
| + | |||
| + | KbdXlate (XlateRecord, | ||
| + | |||
| + | // | ||
| + | Address of the translation record structure: | ||
| + | |||
| + | // | ||
| + | Character data information structure as defined in // | ||
| + | |||
| + | //kbdflag// (**USHORT**) | ||
| + | See the // | ||
| + | |||
| + | //xlate// (**USHORT**) | ||
| + | Translation flag: | ||
| + | |||
| + | ^Value ^Definition ^ | ||
| + | |0 |Translation incomplete. | | ||
| + | |1 |Translation complete. | | ||
| + | |||
| + | // | ||
| + | Identifies the state of translation across successive calls; initially the value should be zero. It may take several calls to this function to complete a character. The value should not be changed unless a new translation is required, that is, reset value to zero. | ||
| + | |||
| + | // | ||
| + | See description for // | ||
| + | |||
| + | // | ||
| + | Default keyboard or the logical keyboard. | ||
| + | |||
| + | //rc// (**USHORT**) - return | ||
| + | Return code descriptions are: | ||
| + | |||
| + | |0 |NO_ERROR | | ||
| + | |439 |ERROR_KBD_INVALID_HANDLE | | ||
| + | |445 |ERROR_KBD_FOCUS_REQUIRED | | ||
| + | |447 |ERROR_KBD_KEYBOARD_BUSY | | ||
| + | |464 |ERROR_KBD_DETACHED | | ||
| + | |504 |ERROR_KBD_EXTENDED_SG | | ||
| + | |||
| + | **Remarks** | ||
| + | |||
| + | It may take several calls to complete a translation because of accent key combinations, | ||
| + | |||
| + | The // | ||
| + | |||
| + | === C bindings === | ||
| - | **C**: | ||
| <code c> | <code c> | ||
| typedef struct _KBDTRANS { /* kbxl */ | typedef struct _KBDTRANS { /* kbxl */ | ||
| Line 28: | Line 74: | ||
| </ | </ | ||
| - | **MASM**: | + | === MASM bindings === |
| <code asm> | <code asm> | ||
| KBDTRANS struc | KBDTRANS struc | ||
| Line 52: | Line 99: | ||
| Returns WORD | Returns WORD | ||
| </ | </ | ||
| - | |||
| - | This call translates scan codes with shift states into ASCII codes. | ||
| - | |||
| - | KbdXlate (XlateRecord, | ||
| - | |||
| - | // | ||
| - | Address of the translation record structure: | ||
| - | |||
| - | // | ||
| - | Character data information structure as defined in // | ||
| - | |||
| - | //kbdflag// (**USHORT**) | ||
| - | See the // | ||
| - | |||
| - | //xlate// (**USHORT**) | ||
| - | Translation flag: | ||
| - | |||
| - | ^Value ^Definition ^ | ||
| - | |0 |Translation incomplete. | | ||
| - | |1 |Translation complete. | | ||
| - | |||
| - | // | ||
| - | Identifies the state of translation across successive calls; initially the value should be zero. It may take several calls to this function to complete a character. The value should not be changed unless a new translation is required, that is, reset value to zero. | ||
| - | |||
| - | // | ||
| - | See description for // | ||
| - | |||
| - | // | ||
| - | Default keyboard or the logical keyboard. | ||
| - | |||
| - | //rc// (**USHORT**) - return | ||
| - | Return code descriptions are: | ||
| - | |||
| - | |0 |NO_ERROR | | ||
| - | |439 |ERROR_KBD_INVALID_HANDLE | | ||
| - | |445 |ERROR_KBD_FOCUS_REQUIRED | | ||
| - | |447 |ERROR_KBD_KEYBOARD_BUSY | | ||
| - | |464 |ERROR_KBD_DETACHED | | ||
| - | |504 |ERROR_KBD_EXTENDED_SG | | ||
| - | |||
| - | **Remarks** | ||
| - | |||
| - | It may take several calls to complete a translation because of accent key combinations, | ||
| - | |||
| - | The // | ||




