-
Notifications
You must be signed in to change notification settings - Fork 20
Implement full touchscreen gameplay #525
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
base: master
Are you sure you want to change the base?
Conversation
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.
Thank you for your contribution, however, I'm going to suspend this on the basis that none of this has been approved off and that there lacks user feedback on how mobile touch inputs should be handled in Tau.
Regardless, I've decided to review this code and give some insight into what our code style should look like.
Children = | ||
[ | ||
mainContent = new Container | ||
{ | ||
RelativeSizeAxes = Axes.Both, | ||
Alpha = 0, | ||
Children = | ||
[ | ||
new Container | ||
{ | ||
RelativeSizeAxes = Axes.Both, | ||
Width = width, | ||
Children = | ||
[ | ||
hardButton1 = new InputArea(TauAction.HardButton1, trackedActionSources) | ||
{ | ||
RelativeSizeAxes = Axes.Both, | ||
Height = normal_area_height_ratio, | ||
Colour = colours.Gray9, | ||
Anchor = Anchor.BottomRight, | ||
Origin = Anchor.BottomRight, | ||
}, | ||
hardButton2 = new InputArea(TauAction.HardButton2, trackedActionSources) | ||
{ | ||
RelativeSizeAxes = Axes.Both, | ||
Height = 1 - normal_area_height_ratio, | ||
}, | ||
] | ||
}, | ||
], | ||
}, | ||
]; |
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.
All of this could be replaced with a simple GridContainer
.
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.
Tried my best but I don't really know the osu-framework well enough to do this. Going to leave it as is because it works in its current state.
Just as the title says. Here's a video of my bad gameplay but with all inputs properly mapped to the Tau keybinds.
https://streamable.com/chio4f
Touch input overview
Please leave feedback or feel free to make commits to the branch. Would love to see this make a release. FYI this branch was created from the #524 branch, hopefully this shouldn't be a problem (considering it needs to actually work).