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

add support keyboard controls #5

Open
sleep-walker opened this issue Mar 1, 2019 · 2 comments
Open

add support keyboard controls #5

sleep-walker opened this issue Mar 1, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@sleep-walker
Copy link

When running this application on machines with keyboard and mouse (typically attached to "TV"), it is uncomfortable to use mouse drag&drop actions for every move.

Would that be possible to add also keyboard controls? (Left/Right/Up/Down)

Thanks in advance.

PS: I really appreciate this project and your work on this. Thanks for what you already done. <3

@Kamuno Kamuno added the enhancement New feature or request label Mar 7, 2019
@GfEW
Copy link

GfEW commented May 25, 2024

More than 5 years in, was about to make the same suggestion, although for two other, additional reasons:

  1. Keyboard controls are a matter of accessibility. Not everyone can coordinate and perform so many touch-slides wery well, be it due to hardware issues or personal inabilities. Given the proper means though (usually involving some kind of keyboard device), 2048 can be a very interesting game to play - and win!

  2. Even on mobile devices, sliding games like 2048 can be played much more fluently and, to speed enthusiasts, more enjoyably, on an external keyboard. With touch-swipes, the 1000ish moves required for a plain 2048 win (let alone higher numbers) are hard to get done in less than 15 min due to the sheer, physical interaction, whilst on a keyboard (e. g. online at https://2048.neiunderscore.com/), 5 min are easily within reach.

These reasons couldn't be more different, but for both, being able to control privacy friendly 2048 with the arrow keys would be a big improvement.

@basxto
Copy link

basxto commented Nov 25, 2024

This works. This game can be played with just a keyboard, gamepad or smart TV remote. Apparently it was fixed recently with d0db621, but that could be unrelated to this issue.

The only thing that is missing is proper highlighting of buttons etc. since you never see where your focus unless it’s the menu button or inside the menu. For the game itself highlighting doesn’t matter.

The only tricky part is the tutorial window after the first start, which does work with a keyboard ([<right><right><right>]<tab><enter>) but not with a remote or a gamepad.

The highlighting and tutorial is a general issue for all SecUSo apps and renders other games nearly unplayable (Memory, Battletanks).

Though I guess I better open a new issue for highlighting.

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

No branches or pull requests

4 participants