|
From: Michael G. <mg...@st...> - 2002-09-01 03:04:53
|
Hi, I'm a senior at Stetson University and I'm new to both C# and CsGL, but = I am attempting to use CsGL and C# for my advanced graphics class this = semester. So for I'm been able to reporduce some of the Nehe lessons = from the csgl src file I downloaded from srouceforge.net. My only = problem at this point is that for some unknown reason I can't get my = arrow keys to work. It's like the the keys don't even trigger the = event. Even when I rebuilt the nehe lessons (I think it was lesson nine = that I did for this test) none of the arrow keys worked for those = either. As a result I made a test app that just tested the keys in c# = and they worked fine but when you are testing the keys from an object = that inherits from OpenGLControl, the arrow keys aren't detected. Why = is this so? Is there a bug in CsGL that causes the OpenGLControl to not = get KeyEvents from the arrow keys (I think the tab key doesn't work as = well)? In addition to that I tried to add a KeyEventHandler to see if that = would work but it has the same problem. but even so there is an = additional problem in that the if the keyEvenHandler is added to the = main form, no key events are registered (this is if the keyeventhandler = methods are in the class that inherits from OpenGLControl). Could = someone please explain this or help me out on this one. I've been = searching through this code to figure out what the problem is but I'm = with no success. Is it something with csgl itself? My code can be downloaded at = http://www.stetson.edu/~mgilkes/FILES/3DBouncingBall.zip Thanks, Michael |