added touch input scheme for ios#12
Open
kristoff-it wants to merge 1 commit into
Open
Conversation
Probably not the best possible way of implementing touch input support, but it does make the game playable on mobile. The input scheme is adaptive with regard to the direction that pacman is going. For example, going left creates the following touch input grid: __________ | | | | U | | |______| R | | | | | D | | |______|___| Similarly every other direction produces a corresponding "adaptive" grid. Tested it briefly with a mouse and seemed reasonable, testing on a real device might be warranted.
606a1d8 to
b549e39
Compare
Owner
|
Just a heads up that I've seen the PR, but it'll be a little while until I get around looking into it :) |
Author
|
No worries, also feel free to scrap this PR if you plan to add full, clean touch input support. I've only implemented it on stream to be able to play on iOS while learning how to use Sokol. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Probably not the best possible way of implementing touch input support,
but it does make the game playable on mobile.
The input scheme is adaptive with regard to the direction that pacman
is going. For example, going left creates the following touch input
grid:
Similarly every other direction produces a corresponding "adaptive"
grid.
Tested it briefly with a mouse and seemed reasonable, testing on a
real device might be warranted.