XkbGetKeyTypes(3)

πŸ’… XkbGetKeyTypes β€” from the XKB FUNCTIONS manual, bestie ✨

🌸 NAME

XkbGetKeyTypes β€” obtain the list of available key types in the server's keyboard mapping. πŸŽ€

πŸ¦‹ SYNOPSIS

Status XkbGetKeyTypes (Display *dpy, unsigned int first, unsigned int num, XkbDescPtr xkb);

πŸ“ ARGUMENTS

  • dpy β€” connection to X server. Your little link to the server, bestie. ✨
  • first β€” index to first type to get, 0 => 1st type. 🫢
  • num β€” number of key types to be returned. πŸ’–
  • xkb β€” keyboard description containing client map to update. 🌸

πŸ’œ DESCRIPTION

Okay so XkbGetKeyTypes queries the server for the desired types, waits for a reply, and returns the desired types in xkb->map->types. If successful, it returns Success. No cap. ✨

XkbGetKeyTypes returns BadAccess if the Xkb extension has not been properly initialized and BadValue if the combination of first and num results in numbers out of valid range. 🫢

NOTE: XkbGetKeyTypes is used to obtain descriptions of the key types themselves, not the key types bound to individual keys. To obtain the key types bound to an individual key, refer to the key_sym_map field of the client map. πŸ’…

🌈 DIAGNOSTICS

  • BadAccess β€” The Xkb extension has not been properly initialized. 😭
  • BadValue β€” An argument is out of range. πŸ’€

πŸ‘‘ SEE ALSO


πŸ’– That’s the whole page, bestie β€” brought to you by X Version 11 and libX11 1.8.14, with XkbGetKeyTypes(3) energy. The footer has no date on this one, so we’re not inventing one. Periodt. ✨

πŸ“¦ where this page comes from