Skip to content

Commit

Permalink
Touch Support (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Plonq authored Feb 2, 2024
1 parent 35fad9e commit c96675d
Show file tree
Hide file tree
Showing 17 changed files with 4,873 additions and 20 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,20 @@ Default controls:
- Right Mouse - Pan
- Scroll Wheel - Zoom

Touch controls:

- One finger - Orbit
- Two fingers - Pan
- Pinch - Zoom

## Features:

- Orbiting, panning and zooming
- Smooth motion
- Works with orthographic camera projection in addition to perspective
- Customisable controls, sensitivity, and more
- Touch support
- Currently 'beta' - please report any issues!
- Works with multiple viewports and/or windows
- Easy to control manually, e.g. for keyboard control or animation
- Can control cameras that render to a texture
Expand Down
5 changes: 5 additions & 0 deletions examples/touch/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Flag to notify the compiler we're building for the iOS simulator from an Apple silicon mac
# This needs some workarounds for now
# See https://github.com/bevyengine/bevy/pull/10178 - remove if it's not needed anymore.
[target.aarch64-apple-ios-sim]
rustflags = ["--cfg=ios_simulator"]
2 changes: 2 additions & 0 deletions examples/touch/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/build
/target
Loading

0 comments on commit c96675d

Please sign in to comment.