[vtkusers] myKeyPressCallback with function keys

Denis Barbier bouzim at gmail.com
Mon Nov 24 10:30:36 EST 2008


See http://www.vtk.org/pipermail/vtkusers/2008-November/098323.html
You can test GetKeySym() against "F1", "F2", etc.

Denis

2008/11/24 Steffen Oeltze <stoeltze at isg.cs.uni-magdeburg.de>:
> Dear VTK-users,
>
> I have a question that seems to be simple to answer. However, I didn't find
> a solution yet, neither in the VTK sources nor in the mailing list archives.
> A have a callback function that catches key press events. How do I detect
> whether one of the function keys (F1,F2,...) has been hit? I  tried the
> ascii code representations but without success.
>
> Best Regards and thank you for your help in advance,
> Steffen
>
> --
> Dipl.-Ing. Steffen Oeltze
> Department of Simulation and Graphics, School of Computer Science
> Otto-von-Guericke-University Magdeburg
>
> Universitätsplatz 2, 39106 Magdeburg
> GERMANY
>
> Phone:  (+49-391) 67-1 25 27
> Fax:    (+49 391) 67-1 11 64
> Email:  stoeltze at isg.cs.uni-magdeburg.de
> Web:    http://wwwisg.cs.uni-magdeburg.de/cv/
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the 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