From 6ff4dff306959ca22b1bd3a5781601f3f198fc61 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 5 Apr 2005 16:37:35 +0000 Subject: Fixed some of the warnings. svn-id: r17396 --- gob/util.cpp | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'gob/util.cpp') diff --git a/gob/util.cpp b/gob/util.cpp index 581d96c7d0..12f408f3d7 100644 --- a/gob/util.cpp +++ b/gob/util.cpp @@ -32,25 +32,25 @@ int16 util_translateKey(int16 key) { struct keyS { int16 from; int16 to; - } static keys[] = { - 8, 0xe08, // Backspace - 13, 0x1C0D, // Enter - 27, 0x11b, // ESC - 127, 0x5300, // Del - 273, 0x4800, // Up arrow - 274, 0x5000, // Down arrow - 275, 0x4D00, // Right arrow - 276, 0x4B00, // Left arrow - 282, 0x3b00, // F1 - 283, 0x3c00, // F2 - 284, 0x3d00, // F3 - 285, 0x3E00, // F4 - 286, 0x3F00, // F5 - 287, 0x4000, // F6 - 288, 0x4100, // F7 - 289, 0x4200, // F8 - 290, 0x4300, // F9 - 291, 0x4400 // F10 + } keys[] = { + {8, 0xe08 }, // Backspace + {13, 0x1C0D }, // Enter + {27, 0x11b }, // ESC + {127, 0x5300}, // Del + {273, 0x4800}, // Up arrow + {274, 0x5000}, // Down arrow + {275, 0x4D00}, // Right arrow + {276, 0x4B00}, // Left arrow + {282, 0x3b00}, // F1 + {283, 0x3c00}, // F2 + {284, 0x3d00}, // F3 + {285, 0x3E00}, // F4 + {286, 0x3F00}, // F5 + {287, 0x4000}, // F6 + {288, 0x4100}, // F7 + {289, 0x4200}, // F8 + {290, 0x4300}, // F9 + {291, 0x4400} // F10 }; int i; @@ -122,9 +122,9 @@ void util_processInput() { } void util_getMouseState(int16 *pX, int16 *pY, int16 *pButtons) { - int16 x = 0; - int16 y = 0; - int16 buttons = 0; +// int16 x = 0; +// int16 y = 0; +// int16 buttons = 0; *pX = _mouseX; *pY = _mouseY; -- cgit v1.2.3