[package]
edition = "2024"
rust-version = "1.96"
name = "sgl-input"
version = "0.2.1"
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Caller-polled controller discovery, events, and held state for SGL games"
documentation = "https://docs.rs/sgl-input"
readme = "README.md"
keywords = [
"gamedev",
"input",
"gamepad",
"controller",
]
categories = ["game-development"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/stevepryde/sgl"
[lib]
name = "sgl_input"
path = "src/lib.rs"
[[example]]
name = "controllers"
path = "examples/controllers.rs"
[dev-dependencies.winit]
version = "=0.30.13"
features = [
"rwh_06",
"x11",
"wayland",
"wayland-dlopen",
]
default-features = false
[target.'cfg(not(target_os = "macos"))'.dependencies.gilrs]
version = "0.11.2"
[target.'cfg(target_os = "macos")'.dependencies.block2]
version = "0.6.2"
[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6.4"
[target.'cfg(target_os = "macos")'.dependencies.objc2-game-controller]
version = "0.3.2"
features = [
"std",
"block2",
"GCController",
"GCDevice",
"GCExtendedGamepad",
"GCPhysicalInputProfile",
"GCControllerElement",
"GCControllerAxisInput",
"GCControllerButtonInput",
"GCControllerDirectionPad",
]
default-features = false
[lints.rust]
unsafe_code = "deny"