[vtkusers] How to use the arrow keys
Reicht, Ignaz
i.reicht at Dkfz-Heidelberg.de
Thu Aug 18 17:39:04 EDT 2011
Hi David,
use iren->GetKeySym()
have a look at this
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/KeypressEvents
iggy
-------------------------------------------------
Spelling Errors added by Apple OSX
intelligent word completion
On Aug 18, 2011, at 11:35 PM, David Brayford wrote:
I am trying unsuccessfully to find the command to use the arrow keys.
char keycode=iren->GetKeyCode();
switch (keycode)
{
case 'ARROW_UP':
{
break;
}
case 'ARROW_DOWN':
{
break;
}
}
Thanks
David
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list