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

Author Topic: Capture Enter Key  (Read 4149 times)

0 Members and 1 Guest are viewing this topic.

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
Capture Enter Key
« 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.

nulloid

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Capture Enter Key
« Reply #1 on: October 15, 2010, 03:29:58 pm »
What about Key::Return? ;)

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
Capture Enter Key
« Reply #2 on: October 15, 2010, 03:36:35 pm »
Heh I can be so stupid sometimes...

Thank nulloid!  :wink:

nulloid

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Capture Enter Key
« Reply #3 on: October 15, 2010, 04:29:48 pm »
Well, everyone can be tired from times to times... good luck ;)

 

anything