[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/worldmap level_dot.cxx,1.19,1.20
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/worldmap level_dot.cxx,1.19,1.20 |
Date: |
15 Apr 2003 19:06:52 -0000 |
Update of /var/lib/cvs/Games/Pingus/src/worldmap
In directory dark:/tmp/cvs-serv5042/worldmap
Modified Files:
level_dot.cxx
Log Message:
- removed obsolete mouse show/hide stuff
- fixed software cursor a bit
- made the current controller globally reachable
Index: level_dot.cxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/worldmap/level_dot.cxx,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- level_dot.cxx 10 Apr 2003 14:36:35 -0000 1.19
+++ level_dot.cxx 15 Apr 2003 19:06:50 -0000 1.20
@@ -17,8 +17,9 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#include <ClanLib/Display/Input/mouse.h>
#include <iostream>
+#include "../input/controller.hxx"
+#include "../input/pointer.hxx"
#include "../my_gettext.hxx"
#include "../globals.hxx"
#include "../system.hxx"
@@ -77,7 +78,8 @@
void
LevelDot::draw(GraphicContext& gc)
{
- Vector mpos = gc.screen_to_world(Vector(CL_Mouse::get_x(),
CL_Mouse::get_y()));
+ Vector mpos =
gc.screen_to_world(Vector(Input::Controller::get_current()->get_pointer()->get_x_pos(),
+
Input::Controller::get_current()->get_pointer()->get_y_pos()));
float x = mpos.x - pos.x;
float y = mpos.y - pos.y;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/worldmap level_dot.cxx,1.19,1.20,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.49,1.50 object_selector.cxx,1.37,1.38
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/data/controller gamepad.xml,1.1,1.2
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.49,1.50 object_selector.cxx,1.37,1.38
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/data/controller gamepad.xml,1.1,1.2
- Index(es):