-
Notifications
You must be signed in to change notification settings - Fork 17
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
base: master
Are you sure you want to change the base?
Conversation
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), |
There was a problem hiding this comment.
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 🤔
There was a problem hiding this comment.
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), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change?
There was a problem hiding this comment.
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