#ifndef lint
static char *rcsid_input_c = "$Header: /var/lib/cvsd/repos/CSRG/43BSDTahoe/new/X/xperfmon/input.c,v 1.1.1.1 2018/04/24 16:12:58 root Exp $";
#endif	lint

/* input.c */

#include <X/Xlib.h>

extern KeyMapEntry StdMap[];

mapkey (keycode)
register int keycode;
{
	short c;

	c = StdMap[keycode & ValueMask][KeyState(keycode)];
	if ((keycode & ShiftLockMask) && c >= 'a' && c <= 'z')
		c += 'A' - 'a';
	return(c);
}
