Keyboard and SWT in Eclipse View

Started by TigerScot, February 26, 2008, 18:36:56

Previous topic - Next topic

TigerScot

Hi all,

I've just started using the LWJGL within Eclipse.
I am mainly an Eclipse RCP developer and for various reasons wish to use the GLCanvas to render LWJGL content in an Eclipse view.

I am fine so far with getting various examples running but have a query about LWJGL Keyboard usage in this environment.

As I am using GLCanvas to render LWJGL OpenGL content, which is in turn placed on a Composite within an Eclipse view; I do not use the LWJGL Display at all.
I know you get the LWJGL Keyboard for free when creating the Display which, as mentioned, I am not.

So, rather than capturing key/mouse events on the GLCanvas directly using the normal listener registration mechanism, is there any way to hook into the LWJGL Keyboard in this context instead?

Many thanks,
T