bevy/examples/input
Jim Eckerlein 13f50c7a53
Rename keys like LAlt to AltLeft (#8792)
# Objective

The
[`KeyCode`](https://github.com/bevyengine/bevy/blob/main/crates/bevy_input/src/keyboard.rs#L86)
enum cases `LWin` and `RWin` are too opinionated because they are also
assigned meaning by non-Windows operating systems. macOS calls the keys
completely different.

## Solution

Match [winits
approach](https://github.com/rust-windowing/winit/blob/master/src/keyboard.rs#L1635)
naming convention.

---

## Migration Guide

Migrate by replacing:
- `LAlt` → `AltLeft`
- `RAlt` → `AltRight`
- `LBracket` → `BracketLeft`
- `RBracket` → `BracketRight`
- `LControl` → `ControlLeft`
- `RControl` → `ControlRight`
- `LShift` → `ShiftLeft`
- `RShift` → `ShiftRight`
- `LWin` → `SuperLeft`
- `RWin` → `SuperRight`
2023-06-15 01:37:04 +00:00
..
char_input_events.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
gamepad_input.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
gamepad_input_events.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
gamepad_rumble.rs Add gamepad rumble support to bevy_input (#8398) 2023-04-24 15:28:53 +00:00
keyboard_input.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
keyboard_input_events.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
keyboard_modifiers.rs Rename keys like LAlt to AltLeft (#8792) 2023-06-15 01:37:04 +00:00
mouse_grab.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
mouse_input.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
mouse_input_events.rs Touchpad magnify and rotate events (#8791) 2023-06-08 20:31:43 +00:00
text_input.rs Consistent screen-space coordinates (#8306) 2023-04-05 22:32:36 +00:00
touch_input.rs Non-breaking change* from UK spellings to US (#8291) 2023-04-08 16:22:46 +00:00
touch_input_events.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00