[Top][All Lists]
[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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/input/buttons joystick_button.cxx,1.1,1.2,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/po Rules-quot,NONE,1.1 boldquot.sed,NONE,1.1 address@hidden,NONE,1.1 address@hidden,NONE,1.1 insert-header.sin,NONE,1.1 quot.sed,NONE,1.1 cs.po,1.8,1.9 de.po,1.44,1.45 nl.po,1.20,1.21 sr.po,1.3,1.4 tr.po,1.27,1.28
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src credits.cxx,1.23,1.24
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/po Rules-quot,NONE,1.1 boldquot.sed,NONE,1.1 address@hidden,NONE,1.1 address@hidden,NONE,1.1 insert-header.sin,NONE,1.1 quot.sed,NONE,1.1 cs.po,1.8,1.9 de.po,1.44,1.45 nl.po,1.20,1.21 sr.po,1.3,1.4 tr.po,1.27,1.28
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src credits.cxx,1.23,1.24
- Index(es):