|
|
researchv9-SUN3(old)
#include "copyright.h"
/* $Header: /var/lib/cvsd/repos/research/researchv9/X11/src/X.V11R1/lib/X/XGetKCnt.c,v 1.1.1.1 2018/04/24 17:22:00 root Exp $ */
/* Copyright Massachusetts Institute of Technology 1986 */
#define NEED_REPLIES
#include "Xlibint.h"
struct kmap {char keys[32];};
void
XGetKeyboardControl (dpy, state)
register Display *dpy;
register XKeyboardState *state;
{
xGetKeyboardControlReply rep;
register xReq *req;
LockDisplay(dpy);
GetEmptyReq (GetKeyboardControl, req);
(void) _XReply (dpy, (xReply *) &rep,
(sizeof(rep) - sizeof (xReply)) >> 2, xTrue);
state->key_click_percent = rep.keyClickPercent;
state->bell_percent = rep.bellPercent;
state->bell_pitch = rep.bellPitch;
state->bell_duration = rep.bellDuration;
state->led_mask = rep.ledMask;
state->global_auto_repeat = rep.globalAutoRepeat;
* (struct kmap *) state->auto_repeats = * (struct kmap *) rep.map;
UnlockDisplay(dpy);
SyncHandle();
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.