[vtkusers] GeyKeySym returns same value after releasyng KEY!

zarko.milosevic zarko at kg.ac.rs
Wed Jul 15 11:34:18 EDT 2015


I want to know when no key is pressed on keyboard. So i tried to do something
like:

if(interactor->GetKeySym() == null)
{
// do something
}

When button is pressed interactor->GetKeySym() returns string representing
that key but even when released it keep returning same value. Why is that
and do you have some better option to detect if key is not pressed without
overriding onKeyPress and onKeyRelease functions.

Zarko



--
View this message in context: http://vtk.1045678.n5.nabble.com/GeyKeySym-returns-same-value-after-releasyng-KEY-tp5732921.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list