[vtkusers] vtkXRenderWindowInteractor bug

Mathieu Malaterre Mathieu.Malaterre at creatis.insa-lyon.fr
Tue Aug 19 07:44:25 EDT 2003


Clinton,
	This is not a bug, X11RenderWindow uses 'XLookupString' to translate 
the key, whereas the Win32RenderWindow uses a tab:
"Virtual Key Code to Unix KeySym Conversion"

	I guess if you don't call the 'XLookupString' you may get the 'real' 
key event.

HTH
mathieu


Clinton Stimpson wrote:
> I'm using VTK 4.2 -- I can get the shift-tab event on Windows but I 
> don't get such an event for X11.
> 
> On Windows, I get
> Interactor->GetKeyCode() == 9, Interactor->GetKeySym() == "Tab"
> for a tab.
> 
> On X11, I get
> Interactor->GetKeyCode() == 9, Interactor->GetKeySym() == "\t"
> for a tab.
> 
> 
> On Windows, I get
> Interactor->GetKeyCode() == 0, Interactor->GetKeySym() == "Tab"
> for a shift-tab.
> 
> On X11, I get
> Interactor->GetKeyCode() == 0, Interactor->GetKeySym() == NULL
> for a shift-tab.
> 
> That seems inconsistent to me and I need this to work right.
> 
> Clint
> 
> _______________________________________________
> This is the private VTK discussion list. Please keep messages on-topic. 
> Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 


-- 
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www.creatis.insa-lyon.fr/~malaterre/





More information about the vtkusers mailing list