---
name: "XkbKeyTypeIndex"
section: "3"
platform: "linux"
package: "libx11-doc"
version: "2:1.8.4-2+deb12u2"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/XkbKeyTypeIndex"
---

# XkbKeyTypeIndex(3)

Obtain the index of a key type or the pointer to a key type

## NAME

XkbKeyTypeIndex - Obtain the index of a key type or the pointer to a key type

## SYNOPSIS

**int XkbKeyTypeIndex** **(XkbDescPtr** *xkb***,** **KeyCode** *keycode***,** **int** *group***);**

## ARGUMENTS

- *xkb*

  Xkb description of interest

- *keycode*

  keycode of interest

- *group*

  group index

## DESCRIPTION

*XkbKeyTypeIndex* computes an index into the  *types* vector of the client map in  *xkb* from the given  *keycode* and  *group* index.
