pingus-cvs
[Top][All Lists]
Advanced

[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;





reply via email to

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