aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/software_mouse_pointer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/menu/software_mouse_pointer.cpp')
-rw-r--r--src/menu/software_mouse_pointer.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/menu/software_mouse_pointer.cpp b/src/menu/software_mouse_pointer.cpp
index d5be92d1..c99f4315 100644
--- a/src/menu/software_mouse_pointer.cpp
+++ b/src/menu/software_mouse_pointer.cpp
@@ -50,11 +50,11 @@ namespace usdx
texture_pressed = new Disposer<Texture>(new Texture("game/themes/Deluxe/interface/cursor_pressed.png"));
mouse_move_connection = event_manager->mouse_move.connect(
- boost::bind(&SoftwareMousePointer::on_mouse_move, this, _1, _2));
+ boost::bind(&SoftwareMousePointer::on_mouse_move, this, _1));
mouse_down_connection = event_manager->mouse_down.connect(
- boost::bind(&SoftwareMousePointer::on_mouse_down, this, _1, _2, _3));
+ boost::bind(&SoftwareMousePointer::on_mouse_down, this, _1, _2));
mouse_up_connection = event_manager->mouse_up.connect(
- boost::bind(&SoftwareMousePointer::on_mouse_up, this, _1, _2, _3));
+ boost::bind(&SoftwareMousePointer::on_mouse_up, this, _1, _2));
}
SoftwareMousePointer::~SoftwareMousePointer()
@@ -122,13 +122,13 @@ namespace usdx
}
}
- void SoftwareMousePointer::on_mouse_move(uint16_t x, uint16_t y)
+ void SoftwareMousePointer::on_mouse_move(const Point<int>& p)
{
- set_position(x, y);
+ set_position(p.get_x(), p.get_y());
update();
}
- void SoftwareMousePointer::on_mouse_down(uint8_t button, uint16_t x, uint16_t y)
+ void SoftwareMousePointer::on_mouse_down(uint8_t button, const Point<int>& p)
{
if (button == 1) {
boost::unique_lock<boost::shared_mutex> lock(down_mutex);
@@ -138,7 +138,7 @@ namespace usdx
update();
}
- void SoftwareMousePointer::on_mouse_up(uint8_t button, uint16_t x, uint16_t y)
+ void SoftwareMousePointer::on_mouse_up(uint8_t button, const Point<int>& p)
{
if (button == 1) {
boost::unique_lock<boost::shared_mutex> lock(down_mutex);