SFML community forums

Help => Window => Topic started by: Flaco on July 23, 2012, 05:40:57 am

Title: ERROR - [Keyboard.hpp] - Coincidence problem Class ~ Wiki
Post by: Flaco on July 23, 2012, 05:40:57 am
Hi,

I was in trouble all the week with an error (I use SFML 2.0):

Back is not a member of sf::Keyboard

(Well, not really a week...)

So I read again and again the Wiki & the Doc' about the sf::Keyboard class and I read that:

In the documentation:
enum Key{
//Some enums
Space,
Return,
Back, /* Here */
Tab,
PageUp,
//Some enums
}


So after a while I read the file Keyboard.hpp and found something else:

In Keyboard.hpp (SFML/Window/):
enum Key{
//Some enums yeah
Space,
Return,
BackSpace, /* Different enum here! */
Tab,
PageUp,
//enums, enums, enums
}
 


Sorry for the long topic but I just wan't to be clear about the what and where is error. ^^'

Thank you and hope I help! :)
Title: Re: ERROR - [Keyboard.hpp] - Coincidence problem Class ~ Wiki
Post by: Laurent on July 23, 2012, 07:59:17 am
Yeah I don't update the online documentation everytime there's a small update, sorry.
Title: Re: ERROR - [Keyboard.hpp] - Coincidence problem Class ~ Wiki
Post by: Flaco on July 23, 2012, 03:44:06 pm
No worries!  :D Thank you Laurent! :)