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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - VCras

Pages: [1]
1
Window / How to detect keyboard layout?
« on: March 07, 2017, 04:23:02 pm »
I'm using the latest version of SFML with C++. I want to program my controls so that they change depending on keyboard layout. I have 2 questions:

1.) How can I detect the layout of the users' keyboard (QWERTY, AZERTY, Dvorak, etc)? (I do not want to ask the player for their keyboard layout. It's not professional.) If SFML can't help (I don't see anything in the docs), could you tell me a cross platform way of doing it (ideally with user-friendly documentation)?

Note: Mac OS is not supported in https://github.com/SFML/SFML/pull/568. So this is not a solution.

2.)Let's say, (for the sake of argument), I'm using AZERTY and I press Q. Will this activate sf::Keyboard::isKeyPressed(sf::Keyboard::Q)? Or will it activate sf::Keyboard::isKeyPressed(sf::Keyboard::A) (A being the key in QWERTY that is in the same place as Q in AZERTY)?

Thanks! Sorry if I seem demanding at all; I'm in quite a muddle. I'd greatly appreciate your help  ;D.


2
Window / Controller mappings.
« on: October 14, 2016, 06:31:53 pm »
I want my SFML program to support PS3, PS4, Xbox 360 and Xbox One controllers, on Mac and Windows. My understanding is that for every OS (and driver) there is a different mapping. Are there comprehensive lists of these mappings online? ( I've googled 'controller mappings' extensively.) I don't have Xbox 360 or Xbox One controllers, and so cannot test everything. Cheers.

Pages: [1]
anything