[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Solution to my query about event queue
Hello! I have myself solved the problem of finding out the length of the event queue. Here is the modified code.
#include <X11/Xlib.h>
#include <stdio.h>
int main()
{
char *displayname = NULL;
Display *dpy;
dpy = XOpenDisplay (displayname);
if (!dpy)
{
printf("Error opening display!\n");
exit(1);
}
printf("%d",QLength(dpy)); /* modification */
XCloseDisplay(dpy);
return 0;
}
Anyway, still to get a reply about "keytable", "bit vector of keyboard" and "asscoiating a keypress with the actual value".
- Karthika
_____________________________________________________
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com