Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steamdeck Support #77

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Steamdeck Support #77

wants to merge 2 commits into from

Conversation

Schr3da
Copy link

@Schr3da Schr3da commented Dec 16, 2023

  • Added Steamdeck action controls
  • Added Steamdeck support via feature steamdeck
  • Added feature based compilation for windows size to meet steamdeck

@@ -69,8 +69,8 @@ impl Input {

fn key_to_button(key: Key) -> Option<Button> {
match key {
Key::X => Some(Button::Cross),
Key::C => Some(Button::Circle),
Key::X | Key::Escape => Some(Button::Cross),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm Escape is currently used for switching between the editor and the game 🤔

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per default steamdeck button is mapped to escape - It does not cause any big issue.
As I have tested it before

@@ -164,7 +164,7 @@ impl Runty8KeyExt for Key {
VirtualKeyCode::Down => Some(Self::DownArrow),
VirtualKeyCode::Escape => Some(Self::Escape),
VirtualKeyCode::LAlt => Some(Self::Alt),
VirtualKeyCode::Space => Some(Self::Space),
VirtualKeyCode::Space => Some(Self::Enter),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise it wont work on the steamdeck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants