SFML community forums

Help => General => Topic started by: Contadotempo on October 15, 2010, 03:27:21 pm

Title: Capture Enter Key
Post by: Contadotempo on October 15, 2010, 03:27:21 pm
Hi, I believe this is very simple to do but I'm probably being thick.

How can I capture the enter key, in order to confirm a selection.
I tried App.GetInput().IsKeyDown(Key::Enter) but I that's not correct since Key doesn't have the "Enter" option.

Thanks in advance.
Title: Capture Enter Key
Post by: nulloid on October 15, 2010, 03:29:58 pm
What about Key::Return? ;)
Title: Capture Enter Key
Post by: Contadotempo on October 15, 2010, 03:36:35 pm
Heh I can be so stupid sometimes...

Thank nulloid!  :wink:
Title: Capture Enter Key
Post by: nulloid on October 15, 2010, 04:29:48 pm
Well, everyone can be tired from times to times... good luck ;)