pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src/input/buttons joystick_button.cxx,1.


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/input/buttons joystick_button.cxx,1.1,1.2
Date: 15 Apr 2003 15:12:17 -0000

Update of /var/lib/cvs/Games/Pingus/src/input/buttons
In directory dark:/tmp/cvs-serv28815/src/input/buttons

Modified Files:
        joystick_button.cxx 
Log Message:
added id to error message

Index: joystick_button.cxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/input/buttons/joystick_button.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- joystick_button.cxx 24 Aug 2002 11:37:31 -0000      1.1
+++ joystick_button.cxx 15 Apr 2003 15:12:15 -0000      1.2
@@ -21,6 +21,7 @@
 #include <ClanLib/Display/Input/inputdevice.h>
 #include <ClanLib/Display/Input/inputbutton.h>
 #include "joystick_button.hxx"
+#include "../../string_converter.hxx"
 #include "../../pingus_error.hxx"
 
 namespace Input {
@@ -30,10 +31,10 @@
     JoystickButton::JoystickButton(int id_, int button_) : id(id_), 
button(button_)
     {
       if (static_cast<unsigned int>(id) >= CL_Input::joysticks.size())
-        PingusError::raise("JoystickButton: Invalid joystick id");
+        PingusError::raise("JoystickButton: Invalid joystick id: " + 
to_string(id));
       
       if (button > CL_Input::joysticks[id]->get_num_buttons())
-        PingusError::raise("JoystickButton: Invalid joystick button id");
+        PingusError::raise("JoystickButton: Invalid joystick button id: " + 
to_string(button));
     }
 
     void





reply via email to

[Prev in Thread] Current Thread [Next in Thread]