XkbInitCanonicalKeyTypes (3)
Leading comments
Copyright 1999 Oracle and/or its affiliates. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following condition...
NAME
XkbInitCanonicalKeyTypes - Set the definitions of the canonical key types in a client map to their default valuesSYNOPSIS
-
Status XkbInitCanonicalKeyTypes
(XkbDescPtr xkb,
unsigned int which,
int keypadVMod);
ARGUMENTS
- - xkb
-
- keyboard description containing client map to initialize
- - which
- mask of types to initialize
- - keypadVMod
- index of NumLock virtual modifier
DESCRIPTION
XkbInitCanonicalKeyTypes
initializes the first XkbNumRequiredTypes key types of the keyboard specified by
the
xkb
parameter to their default values. The
which
parameter specifies what canonical key types to initialize and is a bitwise
inclusive OR of the following masks: XkbOneLevelMask, XkbTwoLevelMask,
XkbAlphabeticMask, and XkbKeypadMask. Only those canonical types specified by
the
which
mask are initialized.
If XkbKeypadMask is set in the
which
parameter,
XkbInitCanonicalKeyTypes
looks up the NumLock named virtual modifier to determine which virtual modifier
to use when initializing the KEYPAD key type. If the NumLock virtual modifier
does not exist,
XkbInitCanonicalKeyTypes
creates it.
XkbInitCanonicalKeyTypes
normally returns Success. It returns BadAccess if the Xkb extension has not been
properly initialized, and BadAccess if the
xkb parameter is not valid.
RETURN VALUES
- Success
- The XkbInitCanonicalKeyTypes funtion return Success if the Xkb extension has been properly initialized and the xkb parameter is valid.
DIAGNOSTICS
- BadAccess
-
The Xkb extension has not been properly initialized