bevy/examples/ios
Félix Lescaudey de Maneville c4fc5d88f0 Fixed bevy_ui touch input (#4099)
# Objective

`bevy_ui` doesn't support correctly touch inputs because of two problems in the focus system:
- It attempts to retrieve touch input with a specific `0` id
- It doesn't retrieve touch positions and bases its focus solely on mouse position, absent from mobile devices

## Solution

I added a few methods to the `Touches` resource, allowing to check if **any** touch input was pressed, released or cancelled and to retrieve the *position* of the first pressed touch input and adapted the focus system.

I added a test button to the *iOS* example and it works correclty on emulator. I did not test on a real touch device as:
- Android is not working (https://github.com/bevyengine/bevy/issues/3249)
- I don't have an iOS device
2022-06-20 20:32:19 +00:00
..
bevy_ios_example.xcodeproj Fix iOS CI (#3228) 2021-12-01 21:44:29 +00:00
ios-src An initial xcode setup for using xcode (#539) 2020-10-31 14:36:24 -07:00
src Fixed bevy_ui touch input (#4099) 2022-06-20 20:32:19 +00:00
.gitignore An initial xcode setup for using xcode (#539) 2020-10-31 14:36:24 -07:00
build_rust_deps.sh Fix iOS CI on Intel (for real this time) (#3232) 2021-12-02 07:44:40 +00:00
Cargo.toml Remove cargo-lipo from iOS ci job (#3671) 2022-01-17 21:43:44 +00:00
Makefile Fix iOS CI (#3228) 2021-12-01 21:44:29 +00:00