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

Hardware keypad is useless #67

Open
bodqhrohro opened this issue Oct 20, 2023 · 1 comment
Open

Hardware keypad is useless #67

bodqhrohro opened this issue Oct 20, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@bodqhrohro
Copy link

I play this on a phone with a keypad, and the keys are useless, so I have to do everything with the touchscreen.

I would suggest the following mappings:

2/4/6/8, 1/3/7/9, and D-Pad: navigate between available fields. Needs a cursor to be implemented exactly for this feature. Also, the navigation with 8 keys in a hexagonal would be a bit non-trivial and non-intuitive. I have not seen the original game (given it's a DOS game, I assume it had a keyboard navigation too?), though I played the Disney Mahjong J2ME game, which has a similar hexagonal layout and some nearly intuitive 8-directional navigation system.

Alternatively, digits can be used for navigation and D-Pad for panning.

5/DPAD_CENTER: confirm.

*: undo.
0: add a unit.
#: add a castle.

Even though it should probably be a separate issue, I'd also like to see on-screen zoom buttons, as pinch-to-zoom is the only action that requires two fingers, and is non-trivial to do with one hand. (Maybe should be duplicated with hardware keys too, but there's none of them left ×D Maybe volume buttons, but my device does not have them anyway, and you plan to add sounds in the future, and it's not a good idea to intercept them)

@Sesu8642 Sesu8642 added the enhancement New feature or request label Oct 22, 2023
@Sesu8642
Copy link
Owner

I have had some thoughts about controller support that I think should help with your use case as well. Instead of a real cursor, there is a "selected" hexagon tile. The selection can be moved via joystick/D-pad. I think this is more or less what you described too.

Using hardware buttons to do certain actions (like placing a unit) itself should be fairly easy to implement. However, the buttons you mentioned sound like they are quite specific to your device's key layout. A proper implementation would be to have user configurable key bindings.

Zoom buttons should be configurable too (on/off) and disabled by default since most people probably prefer to use the pinch gesture and don't want additional space blocked by buttons.

Overall, this seems like a rather rare use case and also a quite large effort to implement. So it's not going to to have a very high priority for me at the moment unfortunately.

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

2 participants