[package]
edition = "2024"
rust-version = "1.96"
name = "sgl-input"
version = "0.4.2"
build = false
include = [
"/src",
"/README.md",
"/LICENSE-APACHE",
"/LICENSE-MIT",
]
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"
[dev-dependencies.wasm-bindgen-test]
version = "0.3.77"
[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.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "deny"