SFML community forums

Help => Window => Topic started by: Srejv on January 18, 2008, 06:41:47 pm

Title: Joysticks
Post by: Srejv on January 18, 2008, 06:41:47 pm
Why is axis the same as buttons?

Code: [Select]

sf::Event::JoyMove.Axis

is the same as
Code: [Select]

sf::Event::JoyButton.Button


What I mean is it gives the same ouput. Shouldn't JoyButton.Button give like -1 or something when just tilting an axis and JoyMove.Axis return -1 if I'm pressing a button?
Title: Joysticks
Post by: Laurent on January 19, 2008, 04:20:04 am
The JoyMove field is valid only when receiving a JoyMove event.
The same for JoyButton.