François
d0840bd721
Fix example return_after_run ( #1082 )
...
* ignore error when setting global tracing subscriber
* ignore unfocus event on window closed previously
* update example to show how to disable LogPlugin
2020-12-18 15:08:26 -06:00
Carter Anderson
841755aaf2
Adopt a Fetch pattern for SystemParams ( #1074 )
2020-12-15 21:57:16 -08:00
Nathan Jeffords
d2e4327b14
update Window
's width
& height
methods to return f32
( #1033 )
...
update `Window`'s `width` & `height` methods to return `f32`
2020-12-13 15:05:56 -08:00
Corey Farwell
9602b24d0f
Add support for Apple Silicon by upgrading winit. ( #1043 )
2020-12-13 11:27:54 -08:00
Carter Anderson
509b138e8f
Schedule v2 ( #1021 )
...
Schedule V2
2020-12-12 18:04:42 -08:00
Nathan Jeffords
3d386a77b4
attempt to deal with rounding issue when creating the swap chain ( #997 )
...
attempt to deal with rounding issue when creating the swap chain on high DPI displays
2020-12-07 13:32:57 -08:00
thebluefish
08b6aa59f8
Added WindowFocused event ( #956 )
2020-12-07 13:24:25 -08:00
François
a3bca7e464
Fix ci ( #1024 )
...
* fix format
* fix clippy
* used fixed nightly
2020-12-07 11:57:15 -08:00
Corey Farwell
1398d78330
Allow windows to maximized. ( #1004 )
...
Adds a new `set_maximized` method to allow users to maximize windows.
2020-12-04 14:31:17 -08:00
Nathan Jeffords
1aff709d27
Set cursor updates ( #993 )
...
* update `Window::set_cursor_position` to take a `Vec2` instead of `i32`s
this allows fractional coordinates to work correctly
2020-12-03 12:39:03 -08:00
Tomasz Sterna
1f2e4171cf
Store mouse cursor position in Window ( #940 )
2020-12-03 11:30:27 -08:00
Joshua J. Bouw
9f4c8b1b9a
Fix errors and panics to typical Rust conventions ( #968 )
...
Fix errors and panics to typical Rust conventions
2020-12-02 11:31:16 -08:00
François
6b004f7d16
switch winit size to logical to be dpi independent ( #947 )
...
* switch winit size to logical
* make scale factor available from bevy_window
2020-11-30 18:24:49 -08:00
Tomasz Sterna
fd6b787efc
Create winit windows before app.initialize() ( #916 )
...
This is required so startup systems have access
to Windows and WinitWindows resources.
2020-11-25 17:32:41 -08:00
Tomasz Sterna
b2c82955ff
Add set_cursor_position method to Window ( #917 )
2020-11-25 17:31:10 -08:00
bjorn3
d6eb647451
Misc cleanups ( #879 )
...
* Remove cfg!(feature = "metal-auto-capture")
This cfg! has existed since the initial commit, but the corresponding
feature has never been part of Cargo.toml
* Remove unnecessary handle_create_window_events call
* Remove EventLoopProxyPtr wrapper
* Remove unnecessary statics
* Fix unrelated deprecation warning to fix CI
2020-11-17 13:40:18 -08:00
Carter Anderson
3a6f6de277
System Inputs, Outputs, Chaining, and Registration Ergo ( #876 )
...
System Inputs, Outputs, Chaining, and Registration Ergo
2020-11-16 18:18:00 -08:00
Rob
7aac4223d0
Fixed property typos, KeyCode typo. ( #857 )
...
* Fixed property typos, KeyCode typo.
* cargo fmt
2020-11-16 16:33:19 -08:00
Carter Anderson
e03f17ba7f
Log Plugin ( #836 )
...
add bevy_log plugin
2020-11-12 17:23:57 -08:00
Oscar
f54788527b
Add received character ( #805 )
...
* Add ReceivedCharacter window event
* Add ReceivedCharacter window event examples
2020-11-06 17:15:56 -08:00
Carter Anderson
9afe196f16
release: 0.3.0 ( #783 )
2020-11-03 13:34:00 -08:00
David Ackerman
7efb1b1887
Fix initial Android support ( #778 )
...
* Add force touches, fix ui focus system and touch screen system
* Fix examples README. Update rodio with Android support. Add Android build CI
* Alter android metadata in root Cargo.toml
2020-11-03 11:32:48 -08:00
Nathan Stocks
2f87ff6618
Move ElementState to top-level of bevy_input. Resolves #687 . ( #769 )
2020-11-02 18:16:13 -08:00
Carter Anderson
f88cfabdde
asset: WasmAssetIo ( #703 )
...
asset: WasmAssetIo
2020-10-19 17:29:31 -07:00
Tomasz Sterna
149c39950a
Runners explicitly call App.initialize() ( #690 )
2020-10-18 12:25:33 -07:00
Sergey Minakov
a80469bd13
Touch support implementation ( #696 )
...
Adds a basic touch input system
2020-10-18 12:24:01 -07:00
Alex
d004bce0c9
Added basic mouse capture API ( #679 )
...
Added basic cursor lock API
2020-10-16 14:07:01 -07:00
Junfeng Liu
f66a72563e
Expose a pointer of EventLoopProxy to process custom messages ( #674 )
2020-10-15 13:31:34 -07:00
François
76cc25823d
can change window settings at runtime ( #644 )
...
can change window settings at runtime
2020-10-15 11:42:19 -07:00
Grayson Burton
354d71cc1f
The Great Debuggening ( #632 )
...
The Great Debuggening
2020-10-08 11:43:01 -07:00
Downtime
125afb41ac
Exposing winit decorations ( #627 )
...
Exposing winit decorations
2020-10-05 10:51:36 -07:00
Carter Anderson
22a2c88a47
winit: upgrade to 0.23.0 / move back upstream! ( #617 )
2020-10-02 12:24:30 -07:00
Tomasz Sterna
dd6f0b5e04
Option to give existing canvas element as winit window ( #515 )
2020-09-21 16:12:34 -07:00
Logan Magee
b5f3585d2e
Merge some imports in bevy_winit/src/lib.rs ( #522 )
2020-09-21 13:54:47 -07:00
Carter Anderson
74dba5f36b
release: 0.2.1 ( #533 )
2020-09-20 15:58:32 -07:00
Carter Anderson
ba5af4dd56
release: 0.2.0 ( #520 )
2020-09-19 15:29:08 -07:00
Tomasz Sterna
5e3731ddce
Create winit canvas under WebAssembly ( #506 )
2020-09-18 20:11:26 -07:00
Tomasz Sterna
34c6f5f41b
Implement WASM support for bevy_winit ( #503 )
...
Also, replaced wasm_timer::Instant with instant::Instant as it is
used by winit WASM implementation.
2020-09-16 13:40:32 -07:00
Smite Rust
a9ce7f4e82
update dependencies ( #470 )
2020-09-10 12:54:24 -07:00
Robbie Davenport
4aabe983ec
Switch usage of std HashMap/HashSet default hasher, to aHash algo ( #258 )
...
switch to ahash for HashMaps and HashSets via a new bevy_utils crate
2020-08-28 17:08:51 -07:00
VitalyR
c78187e6df
add an option about display server protocol, and create document docs/cargo_features.md
( #249 )
...
add an option about display server protocol, and create document `docs/cargo_features.md`
2020-08-24 17:06:08 -07:00
Carter Anderson
b925e22949
0.1.3 upgrade
2020-08-22 10:16:52 -07:00
Jake Kerr
db1bf6478c
Allow calling winit with the 'run_return' variant of the run function ( #243 )
...
This adds a new WinitConfig resource that can be used to configure the behavior of winit.
When `return_from_run` is set to `true`, `App::run()` will return on `target_os` configurations that
support it.
Closes bevyengine/bevy#167 .
2020-08-20 22:37:19 -07:00
Claire C
45312a945a
Basic mouse scroll-wheel event ( #222 )
...
add simple mouse wheel event + example
2020-08-20 17:04:01 -07:00
Victor "multun" Collod
c38420f1e9
enforce clippy for all target and features
2020-08-16 07:20:06 -07:00
Wouter Standaert
f539b6e7f6
Using event_loop for getting video mode
2020-08-13 11:27:51 +02:00
Wouter Standaert
a738771c93
Add resizable and windowmode options to window creation
2020-08-13 10:47:40 +02:00
Jake Kerr
ad446c5f60
Use window_builder when configuring initial window
...
This fixes issue #159 where the window would briefly show with default options.
2020-08-13 15:37:26 +09:00
Carter Anderson
6db89da324
bump bevy_winit version
2020-08-10 13:12:57 -07:00
Carter Anderson
d549129d0e
hopefully fix windows build
2020-08-10 13:06:22 -07:00
Carter Anderson
7bdab60e31
use temporary wgpu fork and latest publish winit crate
2020-08-09 21:26:34 -07:00
Carter Anderson
34752a27bd
add "0.1" version to all bevy crate references
2020-08-09 17:39:28 -07:00
Carter Anderson
9aee5323e1
add crate metadata
2020-08-09 17:24:27 -07:00
Carter Anderson
f963cd41dc
app: rename AppPlugin to Plugin
2020-08-07 20:22:17 -07:00
Carter Anderson
1f006c348d
ui: fix examples, flip fix stretch axis incompatibility, ergonomics
2020-07-27 19:13:11 -07:00
Carter Anderson
fb9f04ba90
Merge pull request #73 from Moxinilian/windows-winit-panic
...
winit: fix panic on windows
2020-07-26 13:15:56 -07:00
Moxinilian
4393af5e25
winit: fix panic on windows
2020-07-26 21:36:01 +02:00
Thomas Herzog
b4c185eb0c
cargo fmt
2020-07-26 21:10:18 +02:00
Carter Anderson
93bb1d5b8e
ui: initial flexbox support
2020-07-24 23:04:45 -07:00
Carter Anderson
946d5d1024
ecs: refactor resources
...
fixes unintialized global resource memory
2020-07-19 14:23:06 -07:00
Carter Anderson
fe1adb6cf6
ui: focus/click/hover system. initial buttons
2020-07-18 14:08:46 -07:00
Carter Anderson
f742ce3ef2
app: simplify app imports
2020-07-16 18:47:51 -07:00
Carter Anderson
196bde64e3
cargo fmt
2020-07-16 17:23:50 -07:00
Carter Anderson
1110f9b877
create bevy_math crate and move math types there
2020-07-16 17:11:52 -07:00
Carter Anderson
a656588788
slim down gltf and winit features and remove unused dependencies
2020-07-10 12:08:51 -07:00
Carter Anderson
c81ab99dac
cargo fmt
2020-07-10 01:37:06 -07:00
Carter Anderson
950e50bbb1
Bevy ECS migration
2020-07-10 01:06:21 -07:00
Carter Anderson
ca4726ea7d
render to second window in multiple_windows example
2020-06-25 16:02:21 -07:00
Carter Anderson
e855995145
cargo fmt
2020-06-15 12:47:35 -07:00
Carter Anderson
5b6f24d6a2
input: make new Input resource generic and add Input<MouseButton>
2020-06-04 23:34:21 -07:00
Carter Anderson
b3a57c21a7
input: simpler input interface via an Input
resource
2020-06-04 22:48:53 -07:00
Carter Anderson
ab31bf9d9e
impl Default for EventReader
2020-06-03 23:53:00 -07:00
Carter Anderson
4979a06e90
input: fix input example and add cursor move events
2020-06-03 23:22:32 -07:00
Carter Anderson
fec9034644
camera: break out projection components
2020-05-29 17:25:14 -07:00
Carter Anderson
b58db0749e
use init_resource everywhere
2020-05-13 16:35:38 -07:00
Carter Anderson
75f1362433
upgrade wgpu
2020-05-04 13:11:51 -07:00
Carter Anderson
2447672c63
adapt examples to use system functions and state pattern
2020-04-30 13:52:11 -07:00
Carter Anderson
9a3700d8f1
Change events.iter(&mut reader) to reader.iter(&events)
2020-04-28 10:59:42 -07:00
Carter Anderson
87066cafd3
move bevy crates to their own folder
2020-04-24 17:57:20 -07:00