Integrate AVA2 native shop and refine mobile controls and locale tooltips
This commit is contained in:
@@ -261,7 +261,10 @@ bool VulkanWindow::poll(bool forward_to_live_client) {
|
||||
} else if (event.type == SDL_EVENT_FINGER_MOTION) {
|
||||
touch_controller.on_finger_motion(event.tfinger.fingerID, event.tfinger.x, event.tfinger.y);
|
||||
continue;
|
||||
} else if (event.type == SDL_EVENT_FINGER_UP || event.type == SDL_EVENT_FINGER_CANCELED) {
|
||||
} else if (event.type == SDL_EVENT_FINGER_CANCELED) {
|
||||
touch_controller.cancel_gestures();
|
||||
continue;
|
||||
} else if (event.type == SDL_EVENT_FINGER_UP) {
|
||||
touch_controller.on_finger_up(event.tfinger.fingerID, event.tfinger.x, event.tfinger.y);
|
||||
continue;
|
||||
}
|
||||
@@ -275,6 +278,7 @@ bool VulkanWindow::poll(bool forward_to_live_client) {
|
||||
SDL_HideCursor();
|
||||
os_cursor_hidden_ = true;
|
||||
} else if (event.type == SDL_EVENT_WINDOW_FOCUS_LOST) {
|
||||
touch_controller.cancel_gestures();
|
||||
SDL_CaptureMouse(false);
|
||||
PythonBoot::UIMouseButton(2, false, last_mx_, last_my_);
|
||||
PythonBoot::UIMouseButton(3, false, last_mx_, last_my_);
|
||||
|
||||
Reference in New Issue
Block a user