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

Author Topic: Creating an input field  (Read 3642 times)

0 Members and 1 Guest are viewing this topic.

Zonsa

  • Newbie
  • *
  • Posts: 10
    • View Profile
Creating an input field
« on: December 14, 2021, 05:33:43 pm »
Hey,
i want to make at the end of my game to let the player input his name to save it to the Leaderboard ... Dont really know how to let the player input only Letters and numbers, do i need to make an Array with all chars that are allowed? and how do i get the button the "player" has pressed? 
hope you can help me

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: Creating an input field
« Reply #1 on: December 14, 2021, 08:35:55 pm »
Get the character typed with the TextEntered event.
To get only letters and number check the unicode value or use std::isalnum I think

 

anything