Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XtTranslatC(3) — OSF1 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XtRegisterCaseConverter(1)

XtSetKeyTranslator(1)

XtTranslateKey(1)

XtKeyProc(2)

 

Name

XtTranslateKeycode — invoke the currently registered keycode-to-keysym translator. 

Synopsis

void XtTranslateKeycode(display, keycode, modifiers, modifiers_return, keysym_return)

    Display ∗display;
    KeyCode keycode;
    Modifiers modifiers;
    Modifiers ∗modifiers_return;
    KeySym ∗keysym_return;

Arguments

displaySpecifies the display that the keycode is from. 

keycodeSpecifies the keycode to translate. 

modifiersSpecifies the modifiers to be applied to the keycode. 

modifiers_return
Returns a mask that indicates the modifiers actually used to generate the keysym (an AND of modifiers and any default modifiers applied by the currently registered translator). 

keysym_return
Returns the resulting keysym.

Description

XtTranslateKeycode is used to invoke the currently registered keycode-to-keysym translator (XtTranslateKey by default).  It passes its arguments directly to that converter.  The translator is registered by a call to XtSetKeyTranslator. 

The various functions for changing keyboard mapping are discussed in Chapter 13, Miscellaneous Toolkit Programming Techniques, in Volume Four, X Toolkit Intrinsics Programming Manual. 

Structures

typedef unsigned int Modifiers; Modifiers will be made up of the bitwise OR of the following masks:

ShiftMaskShift key was depressed. 

LockMaskCaps Lock key was depressed. 

ControlMaskControl key was depressed. 

Mod1MaskKey defined as Mod1 was depressed. 

. 
.
.

Mod5MaskKey defined as Mod5 was depressed. 

StandardMask(ShiftMask | LockMask). 

See Also

XtRegisterCaseConverter(1), XtSetKeyTranslator(1), XtTranslateKey(1),
XtKeyProc(2). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026