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

Author Topic: sf::vector and and azerty and qwerty feature requests  (Read 2713 times)

0 Members and 1 Guest are viewing this topic.

mvl

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • Email
sf::vector and and azerty and qwerty feature requests
« on: August 17, 2014, 08:21:37 pm »
I would like to recomend 2 features one is more a convenience one and i know that sfml is not intended for convenience features but I still think it should be implemented.

1) being able to use math between a sf::Vector and a single number(a int or float etc) with operator overloading something like
sf::Vector2f position(2,4);
position += 1;
position *=  2;
 

and that position would equal 6,10 most vectors of other programs and libraries have this functionality

2) being able to get the type of keyboard (azerty, qwerty) being on a azerty myself this would help, so for example automaticaly detact the keyboard type and adjust the key bindings acordingly like wasd keys most of the time are wrong on azerty's

thank you for reading :)

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: sf::vector and and azerty and qwerty feature requests
« Reply #1 on: August 17, 2014, 08:40:41 pm »
1a/ vector +(=) scalar doesn't make sense mathematically speaking.
1b/ vector *(=) scalar is already supported, see documentation

Generally speaking, there already has been a lot of such request, search the forum to understand why they were rejected.

2/ This is planned in a way or another. See #7.
SFML / OS X developer