Function XKeyboard.updateState

void updateState (
  uint depressedMods,
  uint latchedMods,
  uint lockedMods,
  uint depressedLayout,
  uint latchedLayout,
  uint lockedLayout
);