[vtkusers] How to handle different keys events?

Charl P. Botha c.p.botha at its.tudelft.nl
Fri Apr 4 12:07:29 EST 2003


On Fri, Apr 04, 2003 at 06:50:54PM +0200, Jonathan Bailleul wrote:
> I managed to handle 'any key' event using the code below. My problem is
> that I'd be happy to discriminate keys, and I really can't figure out
> how (even if you could notice I significantly advanced since my last
> post). can anybody help?

The caller parameter of your handler should be the RenderWindowInteractor.
Use its GetKeySym() method.  Please see the documentation for
vtkRenderWindowInteractor for more ways to query the current event
information.

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/



More information about the vtkusers mailing list