Commit 90718e6d authored by John Biddiscombe's avatar John Biddiscombe

ERR: Added temp fix to remove keycode not used warning

parent 823bdce6
......@@ -181,7 +181,13 @@ void vtkInteractorStyleFlight::OnKeyDown(int ctrl, int shift,
{
this->CtrlKey = ctrl;
this->ShiftKey = shift;
// New light mode behaviour
// the following if statement is a dummy one to prevent keycode not used
// warnings under unix, (until the correct keycodes are supplied)
if (keycode==0xFF)
{
vtkWarningMacro(<<"Dummy test to prevent compiler warning");
}
// New Flight mode behaviour
// Note that we'll need #defines for ARROW key defs under non win32 OS
#ifdef _WIN32
switch (keycode)
......@@ -206,6 +212,12 @@ void vtkInteractorStyleFlight::OnKeyUp(int ctrl, int shift,
{
this->CtrlKey = ctrl;
this->ShiftKey = shift;
// the following if statement is a dummy one to prevent keycode not used
// warnings under unix, (until the correct keycodes are supplied)
if (keycode==0xFF)
{
vtkWarningMacro(<<"Dummy test to prevent compiler warning");
}
#ifdef _WIN32
switch (keycode)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment