IMSimpleMapping Subroutine

Purpose

Translates a pair of KeySymbol and State parameters to a string and returns a pointer to this string.

Library

Input Method Library (libIM.a)

Syntax

caddr_t IMSimpleMapping (IMMapKeySymbolStateNBytes)
IMMap  IMMap;
KeySym  KeySymbol;
uint  State;
int * NBytes;

Description

Like the IMAIXMapping subroutine, the IMSimpleMapping subroutine translates a pair of KeySymbol and State parameters to a string and returns a pointer to this string. The parameters have the same meaning as those in the IMAIXMapping subroutine.

The IMSimpleMapping subroutine differs from the IMAIXMapping subroutine in that it does not support the diacritic character sequence or the Alt-NumPad key sequence.

Parameters

Item Description
IMMap Identifies the keymap.
KeySymbol Key symbol to which the string is mapped.
State Specifies the state to which the string is mapped.
NBytes Returns the length of the returning string.