Submitted by Anonymous on Wed, 12/10/2003 - 19:08.
hi i would like to have a key comibnation (hotkey)
like ctrl-k or ctrl-f1 like that .
can anyone give me a code snippet for the same.
i have for written this in my event handler ,
XComposeStatus compose;
KeySym keysym;
int bufsize = 20;
char buffer[20];
XKeyEvent *keyEvent = (XKeyEvent*) event;
XLookupString(keyEvent, buffer, bufsize, &keysym, &compose);
if( (keysym == XK_h))
{
CALORIS.GetGlDrawCurrent()->RenderModel(RENDER_WIREHIDDENMESH);
}
how do i specify for key combinations :?