Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile Platform Manipulation Problem #65

Closed
ShenKecyes opened this issue Feb 6, 2025 · 4 comments
Closed

Mobile Platform Manipulation Problem #65

ShenKecyes opened this issue Feb 6, 2025 · 4 comments
Labels
comment:wontfix This issue will not be addressed or resolved

Comments

@ShenKecyes
Copy link

I found that on the mobile platform, Android, IOS, can not rotate and scale it, can only control the XYZ axis, the visual effect is greatly reduced.

@ShenKecyes
Copy link
Author

For example, on mobile platforms, touch is used, and the right mouse button is not available.

@brenocq
Copy link
Owner

brenocq commented Feb 10, 2025

Hi @ShenKecyes, thanks for the feedback. As far as I know, ImGui doesn't support touchscreen gestures/multi-touch. I've also tested ImPlot on the phone and it appears to have the same problems as ImPlot3D (can't right-click to see the context menu with long tap and can't zoom in/out with gestures).

I've found this discussion ocornut/imgui#7322 discussing how to handle the gesture input and forward that to ImGui, but looks like it needs to be done per application.

I think it would be better to work on supporting device gestures when this type of input is officially supported by ImGui, I'll be closing this issue for now.

@brenocq brenocq closed this as completed Feb 10, 2025
@brenocq brenocq added the comment:wontfix This issue will not be addressed or resolved label Feb 10, 2025
@ShenKecyes
Copy link
Author

你好@ShenKecyes,感谢您的反馈。据我所知,ImGui 不支持触​​摸屏手势/多点触控。我也在手机上测试了 ImPlot,它似乎存在与 ImPlot3D 相同的问题(无法通过长按右键单击查看上下文菜单,也无法通过手势放大/缩小)。

我发现这个讨论ocornut/imgui#7322讨论了如何处理手势输入并将其转发给 ImGui,但看起来它需要每个应用程序都完成。

我认为当 ImGui 正式支持这种类型的输入时,最好致力于支持设备手势,我现在将关闭此问题。

Is it possible to write several widgets to handle the degrees of rotation and scaling? Uch as some buttons or drag bars.

@brenocq
Copy link
Owner

brenocq commented Feb 15, 2025

Is it possible to write several widgets to handle the degrees of rotation and scaling? Uch as some buttons or drag bars.

Yes! It should be possible to have two slider widgets to control the rotation (you can find an example in the Box Rotation demo)

It should also be possible to have some slider widgets to control the scaling/drag. You can programmatically modify the limits of each axis with the SetupAxesLimits API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comment:wontfix This issue will not be addressed or resolved
Projects
None yet
Development

No branches or pull requests

2 participants