YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
15 stars 8 forks source link

In-Game: [iOS] device_mouse_x_to_gui() values are offset when running on iPhones #2389

Closed shichen85 closed 6 months ago

shichen85 commented 7 months ago

Description

device_mouse_x_to_gui() somehow returns value that are slightly offset when running on iPhone 13 Mini but not on other iPhone models.

The sample project has a room that is 1920 x 1080. When tapping on top right corner red dot, iPhone 13 mini's device_mouse_x_to_gui() returns 1999 instead of 1920 as on other devices or iPhone 13 mini emulator.

This is replicated on iPhone 13 Mini running OS 16.6, 15.3.1, and 15.0.2, so it is probably OS agnostic.

Steps To Reproduce

  1. Run the project for iOS vm export on a non iPhone 13 Mini device. Tap the top right corner red dot and see the X reading is supposed to be roughly 1920.
  2. Run the same export on actual iPhone 13 Mini and see the the X reading is roughly 1999.

iPhone 13 Mini running OS 16.6 and 15.3.1 can be accessed from AWS device farm https://aws.amazon.com/device-farm/device-list/

f41330ff-4ef1-412a-b154-41883556bed0

shichen85 commented 7 months ago
Screenshot_2023-12-05_at_12 31 29_PM
shichen85 commented 7 months ago

Simulator_Screenshot_-_iPhone_13_mini_-_2023-12-05_at_17 12 52

searoopy commented 7 months ago

i have same issue

searoopy commented 7 months ago

When will this bug be fixed?

searoopy commented 7 months ago

There is also a problem with device_mouse_y_to_gui() when in portrait mode

Occurs on iPhone 12,13 mini

searoopy commented 7 months ago

ide 23.8 ,runtime 23.8 works fine, but the but since 23.11, I've been experiencing this problem

YYDan commented 7 months ago

Note that the other duplicate reports say that this is not actually specific to the iPhone 13 mini, and indeed that all iPhones back to 6 show this issue when in portrait mode specifically.

I have amended the title again to show we have received this message and do not need a fourth report over the holiday period...

searoopy commented 7 months ago

This is a problem in gamemaker since runtime 23.11, as it worked fine in gamemaker runtime 23.8.

Not an ios issue

searoopy commented 7 months ago

If you use device_mouse_y_to_gui, you can use the the return value is appended with an offset value. (Tested on iphone 12,13 mini)

shamusl commented 6 months ago

Also having this problem. Tested in virtual devices as well as real physical devices. All iOS builds experiencing this problem in portrait. Does anyone know a workaround? I need this issue fixed to hit a deadline.

jackerley commented 6 months ago

@shichen85 I haven't been able to confirm on an iPhone 13 Mini, but I have found and fixed what looks like a related issue with zoom, I'm fairly certain it'll be the same root cause. Could you check in the next beta and confirm that this is fixed?

shichen85 commented 6 months ago

@jackerley Just tested and can confirm that 2024.200.0.486 fixed this issue on iPhone 13 mini

jackerley commented 6 months ago

Excellent, thanks @shichen85

YYDan commented 5 months ago

The zoom fix mentioned above is https://github.com/YoYoGames/GameMaker-Bugs/issues/4304