home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!msuinfo!anchovy.cps.msu.edu!vaitkus
- From: vaitkus@anchovy.cps.msu.edu (Keith P Vaitkus)
- Subject: Keyboard input with X
- Message-ID: <1992Aug15.160543.28140@msuinfo.cl.msu.edu>
- Keywords: keyboard
- Sender: news@msuinfo.cl.msu.edu
- Organization: Dept. of Computer Science, Michigan State University
- Date: Sat, 15 Aug 92 16:05:43 GMT
- Lines: 18
-
- Can someone tell me how to determine which keys have been pressed w/i and X
- program?
-
- The book I'm using says to use the function XLookupString() in the
- event->xkey.keycode structure, BUT it doesn;t say how to. I wrote this code to
- determine if the last key pressed was a space, but all my attempts end with a seg
- fault....
-
-
- if (XLookupString (event->xkey.keycode) == ' ')
- {
- etc.
- }
-
- I would be grateful for any insight into this problem someone can give me.
-
- Thanks in advance,
- -Keith
-