Article View: comp.windows.interviews
Article #681Input handling in a GL window
From: Tom Zhou
Date: Wed, 30 Sep 1992 22:09
Date: Wed, 30 Sep 1992 22:09
27 lines
1490 bytes
1490 bytes
Hi, there, My GL window doesn't seem to take device input! I'm using a variation of GLContext. I used an InputHandler to wrap the GLContext instance (or to be wrapped by the GLContext -- I tried both ways). But this InputHandler doesn't receive anything but key stroke events. (I figure key strokes reach the GL input handler through some weird focusing mechanism that I don't understand yet). A trace reveals that GLWindow::receive(Event&) never gets called. My guess is the following: 1. GL intercepts events in the GL window, so the call XNextEvent in Display::get(Event&) gets no X event from the GL window. Or 2. InterViews' input mechanism doesn't recognize the GL window, so the call WindowRep::find(...) in Display::get(Event&) doesn't return a valid window when an event happens in the GL window. Both conditions can result in receive(Event&) not being called. Can anybody shed a light? How can I get out of this? -Tom -- dfasajdkgsda dskfuiksdahf dskufhksDFLSdf dsFUISDAFH DSFJUKSdfk dsKFJKsdf
Technical Details
Message-ID:
<1992Sep30.220957.31057@m.cs.uiuc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!usenet.coe.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!ux1.cso.uiuc.edu!m.cs.uiuc.edu!zhouShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!usenet.coe.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!ux1.cso.uiuc.edu!m.cs.uiuc.edu!zhou From: zhou@m.cs.uiuc.edu (Tom Zhou) Newsgroups: comp.windows.interviews Subject: Input handling in a GL window Message-ID: <1992Sep30.220957.31057@m.cs.uiuc.edu> Date: 30 Sep 92 22:09:57 GMT Article-I.D.: m.1992Sep30.220957.31057 Organization: University of Illinois, Dept. of Comp. Sci., Urbana, IL Lines: 27