Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Android and Keys  (Read 1259 times)

0 Members and 1 Guest are viewing this topic.

Cmdu76

  • Full Member
  • ***
  • Posts: 194
    • View Profile
Android and Keys
« on: February 28, 2016, 11:55:47 pm »
Hi !

In Android, I find (by myself) that the right button (return/escape) is mapped with sf::Keyboard::Escape.

But I can't find anywhere on the website documentation or tutorials.

So maybe SFML team should add it (if it isn't already the case)

And also I want to know, if others smartphones keys are accessible with sf::Keyboard ?

I tried sf::Keyboard::Menu but not worked...

Thanks in advance for any help

Demir

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • Email
Re: Android and Keys
« Reply #1 on: February 29, 2016, 01:31:46 am »
Hi

I'm not expert at Android environment.
I also examine and try to learn SFML&Android nowadays.

May be it is usefull for you  ... there is a list in androidKeyToSF function
SFML\src\SFML\Window\Android\WindowImplAndroid.cpp

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 877
    • View Profile
Re: Android and Keys
« Reply #2 on: February 29, 2016, 09:11:52 am »
Didn't check, but as far as I remember, other hardware keys (like volume) aren't mapped yet, due to no existing sf::Key member. Feel free to write up a list of your most wanted mappings.

 

anything