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

Android specific keys #18

Closed
slime73 opened this issue Jan 15, 2014 · 4 comments
Closed

Android specific keys #18

slime73 opened this issue Jan 15, 2014 · 4 comments
Labels
feature New feature or request

Comments

@slime73
Copy link
Member

slime73 commented Jan 15, 2014

Original report by Anonymous.


As you know android phones have quite a few keys and I'd like to detect when those keys are being pressed.
Heres a link with a pic containing (I think) all the keys that an android phone can have.

I've read in this link that android phones do not require any of those buttons anymore so if you find any kind of code in the android SDK that can tell me if the phone has any special keys then that'd really helpful to.

@slime73
Copy link
Member Author

slime73 commented Jan 16, 2014

Original comment by Alex Szpakowski (Bitbucket: slime73, GitHub: slime73).


Are you sure these don't trigger love.keypressed events? I don't have an Android device to test, but SDL should be sending those events to LÖVE as key presses I think.

EDIT: actually, LÖVE might be missing some mappings for a few keys, which would cause it to not report a key press event if that key is pressed.

@slime73
Copy link
Member Author

slime73 commented Jan 16, 2014

Original comment by Ranguna (Bitbucket: Ranguna, GitHub: Ranguna).


NVM, tested love.keypressed() keyreleased() detects the menu (as 'menu') and the return/back key (as 'escape'), I'll try to find another android to test the search key, I'll post back

@slime73
Copy link
Member Author

slime73 commented Jan 18, 2014

Original comment by Ranguna (Bitbucket: Ranguna, GitHub: Ranguna).


Aperantly no one has an Android with a search key but I'm guessing it returns "search", we could go on assumption or you could simulate key presses once you have the time

@slime73
Copy link
Member Author

slime73 commented Jan 20, 2014

Original comment by Martin Felis (Bitbucket: MartinFelis, GitHub: MartinFelis).


Search key is now reported as "search".

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

No branches or pull requests

1 participant