[vtk-developers] vtkCarbonRenderWindowInteractor keyboard input is broken
Sean McBride
sean at rogue-research.com
Fri Dec 11 10:58:35 EST 2009
On 12/11/09 6:39 AM, David Gobbi said:
>Furthermore, the GetShiftKey(), GetControlKey(), and GetAltKey()
>methods return raw bit patterns instead of boolean values:
>
> print iren.GetShiftKey() -> 512
> print iren.GetControlKey() -> 4096
That's probably because of this bit in vtkCarbonRenderWindowInteractor.cxx:
int controlDown = (modifierKeys & controlKey);
int shiftDown = (modifierKeys & shiftKey);
probably should be:
int controlDown = (modifierKeys & controlKey) ? 1 : 0;
int shiftDown = (modifierKeys & shiftKey) ? 1 : 0;
>Hopefully the Cocoa
>version is in better shape.
Works well here!
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the vtk-developers
mailing list