summaryrefslogtreecommitdiff
path: root/main/tests
diff options
context:
space:
mode:
authorAndreas Haas <liu.gam3@gmail.com>2017-06-03 10:54:24 +0200
committerAndreas Haas <liu.gam3@gmail.com>2017-06-03 11:26:39 +0200
commit9bc534896135322a578118f433f0dc6265839082 (patch)
tree30316ffea9d6321c6b8292a02b6db3dac9cd1053 /main/tests
parent5a6d4971e13157cc5f0de199de7f6d257070fc66 (diff)
InputEvent: Renamed "pos" property to "position"
Make the naming consistent with other classes.
Diffstat (limited to 'main/tests')
-rw-r--r--main/tests/test_physics_2d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/tests/test_physics_2d.cpp b/main/tests/test_physics_2d.cpp
index 5f57275503..2c9b51aadb 100644
--- a/main/tests/test_physics_2d.cpp
+++ b/main/tests/test_physics_2d.cpp
@@ -216,7 +216,7 @@ protected:
if (mb->is_pressed()) {
- Point2 p(mb->get_pos().x, mb->get_pos().y);
+ Point2 p(mb->get_position().x, mb->get_position().y);
if (mb->get_button_index() == 1) {
ray_to = p;
@@ -232,7 +232,7 @@ protected:
if (mm.is_valid()) {
- Point2 p = mm->get_pos();
+ Point2 p = mm->get_position();
if (mm->get_button_mask() & BUTTON_MASK_LEFT) {
ray_to = p;