]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/jsinput.cxx
Updated to work with current property naming convention.
[flightgear.git] / src / Input / jsinput.cxx
index 5bf12a4c5ab0d3fb343648f946efc7e8d34e9114..c7ea809e83d22664ae736b1f1d43ff8747693001 100644 (file)
@@ -22,7 +22,7 @@
 
 jsInput::jsInput(jsSuper *j) {
   jss=j;
-  pretty_display=false;
+  pretty_display=true;
   joystick=axis=button=-1;
   axis_threshold=0.2;
 }
@@ -101,6 +101,7 @@ int jsInput::getInput(void){
 
         ulMilliSecondSleep(1);
       }
+#if 0
       if(button_bits != 0) {
         for(int i=1;i<=31;i++) {
           if( ( button_bits & (1 << i) ) > 0 ) {
@@ -109,6 +110,9 @@ int jsInput::getInput(void){
           } 
         }    
       } 
+#else
+      button = button_bits;
+#endif
 
       return 0;
 }