Testing Touch

martymarty Posts: 120Member
edited March 2018 in Programming

How do I test touch-based games (ie. Android, iOS) in Godot?

I'm hoping there's a better answer than 'build then deploy to a device'. ;-)

Answers

  • martymarty Posts: 120Member

    As a specific example, I know I can always build to device or build and then run in the simulator.

    But I'm wondering if there is a way to test an iOS/Android game for touch processing before in the Play window.

  • wetechwetech Posts: 17Member

    So I had that same question when I started developing my Batty Bat game. I modified a piece of code I found that allowed you to use a touch screen computer or mouse to interact. I worked out all the movements using mouse on laptop. They worked fine on Android. Look at my Analog Stick Demo Post The code is out on GitHub. That interface will work on touchscreens, with mouse and on Android.
    Hope this helps :)

  • martymarty Posts: 120Member
    edited March 2018

    Is the lack of this functionality a symptom of the _input() singleton currently not yet querying touchscreen events?

    Or is it simply by design?

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file