1
0
Fork 0

Irix Mips compiler tweaks.

This commit is contained in:
curt 2001-06-06 23:31:48 +00:00
parent c64e284c51
commit 7f6d4b0a01
3 changed files with 11 additions and 8 deletions

View file

@ -202,6 +202,3 @@ int main(void) {
return 1;
}

View file

@ -570,7 +570,8 @@ FGInput::_init_joystick ()
//
// Initialize the axes.
//
for (int j = 0; j < naxes; j++) {
int j;
for (j = 0; j < naxes; j++) {
const SGPropertyNode * axis_node = js_node->getChild("axis", j);
if (axis_node == 0) {
SG_LOG(SG_INPUT, SG_INFO, "No bindings for axis " << j);
@ -592,7 +593,7 @@ FGInput::_init_joystick ()
//
// Initialize the buttons.
//
for (int j = 0; j < nbuttons; j++) {
for (j = 0; j < nbuttons; j++) {
const SGPropertyNode * button_node = js_node->getChild("button", j);
if (button_node == 0) {
SG_LOG(SG_INPUT, SG_INFO, "No bindings for button " << j);
@ -630,7 +631,10 @@ FGInput::_update_joystick ()
float js_val, diff;
float axis_values[MAX_AXES];
for (int i = 0; i < MAX_JOYSTICKS; i++) {
int i;
int j;
for ( i = 0; i < MAX_JOYSTICKS; i++) {
jsJoystick * js = _joystick_bindings[i].js;
if (js == 0 || js->notWorking())
@ -640,7 +644,7 @@ FGInput::_update_joystick ()
// Fire bindings for the axes.
for (int j = 0; j < _joystick_bindings[i].naxes; j++) {
for ( j = 0; j < _joystick_bindings[i].naxes; j++) {
axis &a = _joystick_bindings[i].axes[j];
// Do nothing if the axis position
@ -658,7 +662,7 @@ FGInput::_update_joystick ()
}
// Fire bindings for the buttons.
for (int j = 0; j < _joystick_bindings[i].nbuttons; j++) {
for (j = 0; j < _joystick_bindings[i].nbuttons; j++) {
bool pressed = ((buttons & (1 << j)) > 0);
button &b = _joystick_bindings[i].buttons[j];

View file

@ -16,8 +16,10 @@
#include "fg_commands.hxx"
SG_USING_STD(string);
#if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
SG_USING_STD(ifstream);
SG_USING_STD(ofstream);
#endif
#include "fg_props.hxx"
#include "fg_io.hxx"