Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/exult.cc b/exult.cc
- index 104411b5..629747f1 100644
- --- a/exult.cc
- +++ b/exult.cc
- @@ -1585,6 +1585,9 @@ static void Handle_event(
- case SDL_MOUSEMOTION: {
- int mx ;
- int my;
- + if (event.motion.which == SDL_TOUCH_MOUSEID){
- + cout << "FINGER MOTION" << endl;
- + Mouse::is_finger = true;}
- gwin->get_win()->screen_to_game(event.motion.x, event.motion.y, gwin->get_fastmouse(), mx, my);
- Mouse::mouse->move(mx, my);
- diff --git a/mouse.cc b/mouse.cc
- index ad8d848c..55b2a5bd 100644
- --- a/mouse.cc
- +++ b/mouse.cc
- @@ -43,7 +43,8 @@ using std::max;
- static inline bool should_hide_frame(int frame) {
- #ifdef __IPHONEOS__
- - return frame == 0 || (frame >=8 && frame <= 47);
- + if (is_finger)
- + return frame == 0 || (frame >=8 && frame <= 47);
- #else
- ignore_unused_variable_warning(frame);
- return false;
- diff --git a/mouse.h b/mouse.h
- index 0eaf7a38..88617cfc 100644
- --- a/mouse.h
- +++ b/mouse.h
- @@ -91,7 +91,8 @@ class Mouse {
- fast_speed_factor = 400
- };
- int avatar_speed;
- -
- +
- + static bool is_finger;
- static bool mouse_update;
- static Mouse *mouse;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement