[vtkusers] How to check the key is pressed?

Rashid Tanweer quantum_cook at yahoo.com
Sat Apr 23 10:24:26 EDT 2011


Hi, 
Use GetKeyCode property of RenderWindowInteractor by setting up a callback on 
KeyPressed event. 


Regards,
Rashid




________________________________
From: Andrej Gluhov <realandron at gmail.com>
To: vtkusers <vtkusers at vtk.org>
Sent: Fri, April 22, 2011 6:53:53 PM
Subject: [vtkusers] How to check the key is pressed?

How to check the key(alt, ctrl, shift) is pressed in Callback functions?
public void KeyDown(vtkObject caller, uint eventId, object clientData, IntPtr 
callData)
{

//What the key was pressed?
}

-- 
С Уважением,
Андрей.
Best regards, Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110423/5ff1fdb2/attachment.htm>


More information about the vtkusers mailing list