Fix bug with passing PUI keystrokes on to glut.
This commit is contained in:
parent
d72a6a0bd4
commit
9d78e32da8
1 changed files with 7 additions and 2 deletions
|
@ -83,7 +83,9 @@ void GLUTkey(unsigned char k, int x, int y) {
|
|||
w = ¤t_weather;
|
||||
|
||||
FG_LOG( FG_INPUT, FG_DEBUG, "Key hit = " << k );
|
||||
puKeyboard(k, PU_DOWN );
|
||||
if ( puKeyboard(k, PU_DOWN) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( GLUT_ACTIVE_ALT && glutGetModifiers() ) {
|
||||
FG_LOG( FG_INPUT, FG_DEBUG, " SHIFTED" );
|
||||
|
@ -306,7 +308,10 @@ void GLUTspecialkey(int k, int x, int y) {
|
|||
v = ¤t_view;
|
||||
|
||||
FG_LOG( FG_INPUT, FG_DEBUG, "Special key hit = " << k );
|
||||
puKeyboard(k + PU_KEY_GLUT_SPECIAL_OFFSET, PU_DOWN);
|
||||
|
||||
if ( puKeyboard(k + PU_KEY_GLUT_SPECIAL_OFFSET, PU_DOWN) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( GLUT_ACTIVE_SHIFT && glutGetModifiers() ) {
|
||||
FG_LOG( FG_INPUT, FG_DEBUG, " SHIFTED" );
|
||||
|
|
Loading…
Add table
Reference in a new issue