Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VTK
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Michael Migliore
VTK
Commits
f98a022a
Commit
f98a022a
authored
Apr 25, 2000
by
John Biddiscombe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another attempt to hide warnings about keycodes unused
on UNIX boxes
parent
6f85ae9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
graphics/vtkInteractorStyleFlight.cxx
graphics/vtkInteractorStyleFlight.cxx
+15
-13
No files found.
graphics/vtkInteractorStyleFlight.cxx
View file @
f98a022a
...
...
@@ -181,12 +181,6 @@ void vtkInteractorStyleFlight::OnKeyDown(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"
);
}
// New Flight mode behaviour
// Note that we'll need #defines for ARROW key defs under non win32 OS
#ifdef _WIN32
...
...
@@ -203,6 +197,13 @@ void vtkInteractorStyleFlight::OnKeyDown(int ctrl, int shift,
}
// it may already be started but it doesn't matter
if
(
KeysDown
)
this
->
DoTimerStart
();
#else
// the following if statement is a dummy one to prevent keycode not used
// warnings under unix, (until the correct keycodes are supplied)
if
(
keycode
==
0x7F
)
{
vtkWarningMacro
(
<<
"Dummy test to prevent compiler warning"
);
}
#endif
}
...
...
@@ -212,14 +213,8 @@ 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
)
switch
(
keycode
)
{
case
VK_LEFT
:
this
->
KeysDown
&=
~
1
;
break
;
case
VK_RIGHT
:
this
->
KeysDown
&=
~
2
;
break
;
...
...
@@ -230,6 +225,13 @@ void vtkInteractorStyleFlight::OnKeyUp(int ctrl, int shift,
case
'z'
:
case
'Z'
:
this
->
KeysDown
&=
~
32
;
break
;
}
#else
// the following if statement is a dummy one to prevent keycode not used
// warnings under unix, (until the correct keycodes are supplied)
if
(
keycode
==
0x7F
)
{
vtkWarningMacro
(
<<
"Dummy test to prevent compiler warning"
);
}
#endif
}
//---------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment