From 7ab13a585cf4f07e7dc63da53eaf9782070b33da Mon Sep 17 00:00:00 2001 From: Schr3da Date: Fri, 15 Dec 2023 23:14:11 +0100 Subject: [PATCH 1/2] :sparkles: Added steamdeck support --- examples/Cargo.toml | 4 ++++ src/runty8-core/src/input.rs | 4 ++-- src/runty8-core/src/lib.rs | 2 ++ src/runty8-editor/Cargo.toml | 5 ++++- src/runty8-event-loop/Cargo.toml | 4 ++++ src/runty8-event-loop/src/lib.rs | 11 ++++++++++- src/runty8-runtime/Cargo.toml | 5 ++++- src/runty8-winit/src/lib.rs | 2 +- src/runty8/Cargo.toml | 3 +++ 9 files changed, 34 insertions(+), 6 deletions(-) diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 60a33334..613bf15e 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -9,6 +9,10 @@ runty8 = { path = "../src/runty8" } runty8-core = { path = "../src/runty8-core" } log = "0.4" +[features] +default = [] +steamdeck = ["runty8/steamdeck"] + [[bin]] name = "celeste" path = "./celeste/main.rs" diff --git a/src/runty8-core/src/input.rs b/src/runty8-core/src/input.rs index ec467266..922284a5 100644 --- a/src/runty8-core/src/input.rs +++ b/src/runty8-core/src/input.rs @@ -69,8 +69,8 @@ impl Input { fn key_to_button(key: Key) -> Option