mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 15:13:13 -04:00
* Initial implementation * Corrected RAWINPUT buffer sizing * Mostly complete XInput implementation * XInput triggers * Add preliminary CHANGELOG entry. * match unix common API to evl 2.0 * wayland: eventloop2.0 * make EventLoopProxy require T: 'static * Revamp device event API, as well as several misc. fixes on Windows: * When you have multiple windows, you no longer receive duplicate device events * Mouse Device Events now send X-button input * Mouse Device Events now send horizontal scroll wheel input * Add MouseEvent documentation and Device ID debug passthrough * Improve type safety on get_raw_input_data * Remove button_id field from MouseEvent::Button in favor of utton * Remove regex dependency on Windows * Remove axis filtering in XInput * Make gamepads not use lazy_static * Publicly expose gamepad rumble * Unstack DeviceEvent and fix examples/tests * Add HANDLE retrieval method to DeviceExtWindows * Add distinction between non-joystick axes and joystick axes. This helps with properly calculating the deadzone for controller joysticks. One potential issue is that the `Stick` variant isn't used for *all* joysticks, which could be potentially confusing - for example, raw input joysticks will never use the `Stick` variant because we don't understand the semantic meaning of raw input joystick axes. * Add ability to get gamepad port * Fix xinput controller hot swapping * Add functions for enumerating attached devices * Clamp input to [0.0, 1.0] on gamepad rumble * Expose gamepad rumble errors * Add method to check if device is still connected * Add docs * Rename AxisHint and ButtonHint to GamepadAxis and GamepadButton * Add CHANGELOG entry * Update CHANGELOG.md * Add HidId and MovedAbsolute * Fix xinput deprecation warnings * Add ability to retrieve gamepad battery level * Fix weird imports in gamepad example * Update CHANGELOG.md * Resolve francesca64 comments
123 lines
2.9 KiB
TOML
123 lines
2.9 KiB
TOML
[package]
|
|
name = "winit"
|
|
version = "0.20.0-alpha4"
|
|
authors = ["The winit contributors", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
|
|
description = "Cross-platform window creation library."
|
|
edition = "2018"
|
|
keywords = ["windowing"]
|
|
license = "Apache-2.0"
|
|
readme = "README.md"
|
|
repository = "https://github.com/rust-windowing/winit"
|
|
documentation = "https://docs.rs/winit"
|
|
categories = ["gui"]
|
|
|
|
[package.metadata.docs.rs]
|
|
features = ["serde"]
|
|
|
|
[features]
|
|
web-sys = ["web_sys", "wasm-bindgen", "instant/wasm-bindgen"]
|
|
stdweb = ["std_web", "instant/stdweb"]
|
|
|
|
[dependencies]
|
|
instant = "0.1"
|
|
lazy_static = "1"
|
|
libc = "0.2.64"
|
|
log = "0.4"
|
|
serde = { version = "1", optional = true, features = ["serde_derive"] }
|
|
raw-window-handle = "0.3"
|
|
|
|
[dev-dependencies]
|
|
image = "0.21"
|
|
env_logger = "0.5"
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies.android_glue]
|
|
version = "0.2"
|
|
|
|
[target.'cfg(target_os = "ios")'.dependencies]
|
|
objc = "0.2.3"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
cocoa = "0.19.1"
|
|
core-foundation = "0.6"
|
|
core-graphics = "0.17.3"
|
|
dispatch = "0.1.4"
|
|
objc = "0.2.3"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies.core-video-sys]
|
|
version = "0.1.3"
|
|
default_features = false
|
|
features = ["display_link"]
|
|
|
|
[target.'cfg(any(target_os = "ios", target_os = "windows"))'.dependencies]
|
|
bitflags = "1"
|
|
rusty-xinput = "1.0"
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies.winapi]
|
|
version = "0.3.6"
|
|
features = [
|
|
"combaseapi",
|
|
"commctrl",
|
|
"dwmapi",
|
|
"errhandlingapi",
|
|
"hidpi",
|
|
"hidusage",
|
|
"libloaderapi",
|
|
"objbase",
|
|
"ole2",
|
|
"processthreadsapi",
|
|
"shellapi",
|
|
"shellscalingapi",
|
|
"shobjidl_core",
|
|
"unknwnbase",
|
|
"winbase",
|
|
"windowsx",
|
|
"winerror",
|
|
"wingdi",
|
|
"winnt",
|
|
"winuser",
|
|
"xinput",
|
|
]
|
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies]
|
|
wayland-client = { version = "0.23.0", features = [ "dlopen", "egl", "cursor", "eventloop"] }
|
|
calloop = "0.4.2"
|
|
smithay-client-toolkit = "0.6"
|
|
x11-dl = "2.18.3"
|
|
percent-encoding = "2.0"
|
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "windows"))'.dependencies.parking_lot]
|
|
version = "0.10"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.web_sys]
|
|
package = "web-sys"
|
|
version = "0.3.22"
|
|
optional = true
|
|
features = [
|
|
'console',
|
|
'BeforeUnloadEvent',
|
|
'Document',
|
|
'DomRect',
|
|
'Element',
|
|
'Event',
|
|
'EventTarget',
|
|
'FocusEvent',
|
|
'HtmlCanvasElement',
|
|
'HtmlElement',
|
|
'KeyboardEvent',
|
|
'MouseEvent',
|
|
'Node',
|
|
'PointerEvent',
|
|
'Window',
|
|
'WheelEvent'
|
|
]
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
|
|
version = "0.2.45"
|
|
optional = true
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.std_web]
|
|
package = "stdweb"
|
|
version = "=0.4.20"
|
|
optional = true
|
|
features = ["experimental_features_which_may_break_on_minor_version_bumps"]
|