0 Members and 1 Guest are viewing this topic.
Quote from: NGM88 on December 10, 2018, 11:46:53 amOK I see your points; but if it were me, just for simplicity's sake, I would just paste this one line of code into pollEvents() function for 0 to 9 and be done with it.case sf::Keyboard::Num0: case sf::Keyboard::NumPad0: objTextBox.input(0); break;That is not beautiful. You really should use events in this case, but I guess it's up to you.
OK I see your points; but if it were me, just for simplicity's sake, I would just paste this one line of code into pollEvents() function for 0 to 9 and be done with it.case sf::Keyboard::Num0: case sf::Keyboard::NumPad0: objTextBox.input(0); break;
This may shock you but pollEvents() polls events [emoji14]
Quote from: NGM88 on December 11, 2018, 06:21:19 pmThis may shock you but pollEvents() polls events [emoji14]Yeah of course, and it is also encapsulated for a reason.Sent from my SM-G950F using Tapatalk