From 2795fefa71d739ff4a79fed1277daae50c4ee3c4 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 12 Jun 2001 05:16:57 +0000 Subject: [PATCH] replaced 'static const int' with enum, as suggested by Christian Meyer, to work around yet more MSVC bugs --- src/Input/input.hxx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/Input/input.hxx b/src/Input/input.hxx index b63dac855..6ddf78dc8 100644 --- a/src/Input/input.hxx +++ b/src/Input/input.hxx @@ -187,14 +187,18 @@ private: typedef vector binding_list_t; // Constants - static const int MAX_KEYS = 1024; + enum + { + MAX_KEYS = 1024, + #ifdef WIN32 - static const int MAX_JOYSTICKS = 2; + MAX_JOYSTICKS = 2, #else - static const int MAX_JOYSTICKS = 10; + MAX_JOYSTICKS = 10, #endif - static const int MAX_AXES = _JS_MAX_AXES; - static const int MAX_BUTTONS = 32; + MAX_AXES = _JS_MAX_AXES, + MAX_BUTTONS = 32 + }; /** -- 2.39.5