axmolengine / axmol

Axmol Engine – A Multi-platform Engine for Desktop, XBOX (UWP) and Mobile games. (A fork of Cocos2d-x-4.0)
https://axmol.dev
MIT License
868 stars 195 forks source link

Basic input for linux #1209

Closed donmor closed 1 year ago

donmor commented 1 year ago

Is your feature request related to a problem? Please describe. I lddtreeed my output and find gtk-3 dependency only in axmol/core/ui/UIEditBox/UIEditBoxImpl-linux.cpp. I'm not using this at all (or at least not using versatile editbox), so if we can have an option to purge the gtk-based editbox.

Describe the solution you'd like add option(AX_USE_BASIC_EDITBOX OFF) which defines a macro, then in UIEditBoxImpl-linux.cpp we suppress the gtk-based code and use a basic, ascii-only implementation instead. Also this can be applied to other platforms.

donmor commented 1 year ago

In #1208 I once thought libs in thirdparty are wrongly linked dynamically, and then I realized it is gtk-3 and other libs which introduced them again.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.