The StickyKeys
control has two options that can be accessed via the ax_options of an
XkbControlsRec structure. The first option, TwoKeys, specifies whether StickyKeys
should automatically turn off when two keys are pressed at the same time.
This feature is useful for shared computers so people who do not want
them do not need to turn StickyKeys off if a previous user left StickyKeys
on. The second option, LatchToLock, specifies whether or not StickyKeys
locks a modifier when pressed twice in a row.

XkbGetStickyKeysOptions
requests the attributes of the StickyKeys control from the server, waits
for a reply, and backfills options_rtrn with a mask indicating whether
the individual StickyKeys options are on or off. Valid bits in options_rtrn
are:

XkbAX_TwoKeysMask
XkbAX_LatchToLockMask

XkbGetStickyKeysOptions returns True if successful; if a compatible version
of the Xkb extension is not available in the server XkbGetStickyKeysOptions
returns False.