TheRawMeatball
a880b54508
Make EventReader a SystemParam ( #1244 )
...
* Add generic support for `#[derive(SystemParam)]`
* Make EventReader a SystemParam
2021-01-18 22:23:30 -08:00
bjorn3
fbf08ac545
Faster compilation of bevy_diagnostic ( #1235 )
...
* Remove AHashExt
There is little benefit of Hash*::new() over Hash*::default(), but it
does require more code that needs to be duplicated for every Hash* in
bevy_utils. It may also slightly increase compile times.
* Add StableHash* to bevy_utils
* Use StableHashMap instead of HashMap + BTreeSet for diagnostics
This is a significant reduction in the release mode compile times of
bevy_diagnostics
```
Benchmark #1 : touch crates/bevy_diagnostic/src/lib.rs && cargo build --release -p bevy_diagnostic -j1
Time (mean ± σ): 3.645 s ± 0.009 s [User: 3.551 s, System: 0.094 s]
Range (min … max): 3.632 s … 3.658 s 20 runs
```
```
Benchmark #1 : touch crates/bevy_diagnostic/src/lib.rs && cargo build --release -p bevy_diagnostic -j1
Time (mean ± σ): 2.938 s ± 0.012 s [User: 2.850 s, System: 0.090 s]
Range (min … max): 2.919 s … 2.969 s 20 runs
```
2021-01-12 13:21:45 -08:00
Jakob Hellermann
599f381a6a
fix repeated gamepad events ( #1221 )
...
Previously, if the actual value of LeftStickX was e.g. 0.034 and fluctuated a little
bit (less than the threshold) it would repeatedly send out events,
because it compared the value to the *filtered* old one - 0.0 - which is
more then `0.01` (the threshold) away.
The is fixed by first doing the deadzone and then comparing to the old
value.
Another possible solution would be to store both the actual old value
and the filtered one, but that would add complexity.
2021-01-07 12:35:40 -08:00
W. Brian Gourlie
b94f266183
Implement Copy for ElementState ( #1154 )
2020-12-28 15:24:31 -06:00
Carter Anderson
3b2c6ce49b
release 0.4.0 ( #1093 )
2020-12-19 13:28:00 -06:00
Carter Anderson
841755aaf2
Adopt a Fetch pattern for SystemParams ( #1074 )
2020-12-15 21:57:16 -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
Amber Kowalski
ef99e59469
Test more areas of the codebase ( #953 )
...
Test more areas of the codebase
2020-11-30 22:58:49 -08:00
Amber Kowalski
4c1bc02723
Change bevy_input::Touch API to match similar APIs ( #952 )
2020-11-30 17:14:08 -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
Joshua J. Bouw
c9acef04e3
Ahash constructor extensions and HashMap / HashSet ( #790 )
...
Ahash constructor extensions and HashMap / HashSet
2020-11-10 17:06:55 -08:00
Carter Anderson
ebcdc9fb8c
Flexible ECS System Params ( #798 )
...
system params can be in any order, faster compiles, remove foreach
2020-11-08 12:34:05 -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
Utkarsh
fb2b19def5
Fix bug of connection event of gamepad at startup ( #730 )
...
* Removed f32==f32 comparision in gamepad.rs
* Trigger gamepad connection event at start up
2020-10-29 13:55:35 -07:00
Carter Anderson
267599e577
gamepad: expose raw and filtered gamepad events. ( #711 )
2020-10-21 15:56:07 -07:00
Utkarsh
d01ba9e4fc
Separate gamepad state code from gamepad event code and other customizations ( #700 )
...
Separated gamepad event and gamepad state code and made gamepad input more customizable
2020-10-21 10:27:00 -07:00
Carter Anderson
a602f50c2c
small input example improvements ( #701 )
2020-10-18 13:20:42 -07:00
Sergey Minakov
a80469bd13
Touch support implementation ( #696 )
...
Adds a basic touch input system
2020-10-18 12:24:01 -07:00
Utkarsh
dd91f8e116
Add support to get gamepad button/trigger values using Axis<GamepadButton> ( #683 )
2020-10-15 12:45:34 -07:00
Grayson Burton
354d71cc1f
The Great Debuggening ( #632 )
...
The Great Debuggening
2020-10-08 11:43:01 -07:00
Carter Anderson
22a2c88a47
winit: upgrade to 0.23.0 / move back upstream! ( #617 )
2020-10-02 12:24:30 -07:00
Jonas Matser
3a4eacbdee
Adds derive for missing debug implementations ( #597 )
2020-10-01 10:58:21 -07:00
Nolan Darilek
d52f9e32aa
Add #[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
to gamepad types. ( #583 )
...
Seems these may have been missed in the gamepad implementation, copied them from keyboard.rs.
2020-10-01 10:54:20 -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
Utkarsh
19d4694d24
Added gamepad support using Gilrs ( #280 )
...
Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2020-09-18 14:43:47 -07:00
Smite Rust
a9ce7f4e82
update dependencies ( #470 )
2020-09-10 12:54:24 -07:00
Aevyrie
6e460a6a97
Add Copy to MouseScrollUnit ( #270 )
...
add Copy to MouseScrollUnit
2020-09-06 12:56:09 -07:00
Marcel Müller
08dc1c1936
Add access to pressed/just_pressed/just_released to Input<T> ( #428 )
...
Add access to pressed/just_pressed to Input<T>
2020-09-03 17:32:17 -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
Carter Anderson
b925e22949
0.1.3 upgrade
2020-08-22 10:16:52 -07:00
TehPers
7a79dcc46c
Add serialize/deserialize to some input types ( #281 )
2020-08-21 18:13:50 -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
Victor "multun" Collod
d138647818
enforce cargo fmt --check
2020-08-16 05:02:06 -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
3d09459813
add more doc comments and clean up some public exports
2020-08-09 16:13:04 -07:00
Carter Anderson
f963cd41dc
app: rename AppPlugin to Plugin
2020-08-07 20:22:17 -07:00
Thomas Herzog
b4c185eb0c
cargo fmt
2020-07-26 21:10:18 +02:00
Carter Anderson
2a6e75a27e
pbr: simplify imports
2020-07-16 19:27:19 -07:00
Carter Anderson
f742ce3ef2
app: simplify app imports
2020-07-16 18:47:51 -07:00
Carter Anderson
1110f9b877
create bevy_math crate and move math types there
2020-07-16 17:11:52 -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
e855995145
cargo fmt
2020-06-15 12:47:35 -07:00